lab.cpp/Chess/main.h

38 lines
754 B
C
Raw Permalink Normal View History

2016-03-08 18:23:35 +00:00
#ifndef DEF_MAIN_H
2016-03-06 21:51:07 +00:00
2016-03-08 18:23:35 +00:00
#define DEF_MAIN_H
2016-03-06 21:51:07 +00:00
/* [1] Libs
=========================================================*/
/* (1) internes */
#include <iostream>
#include <string>
#include <vector>
2016-03-08 18:23:35 +00:00
#include <stdlib.h>
#include <unistd.h>
2016-03-06 21:51:07 +00:00
/* (2) Externes */
#include "dep/term.h"
2016-03-08 18:23:35 +00:00
#include "dep/ChessContext.h"
2016-03-06 21:51:07 +00:00
/* (3) Namespace */
using namespace std;
/* [2] Enumerations et structures
=========================================================*/
enum KEYBOARD{
HAUT = 72,
BAS = 80,
GAUCHE = 75,
DROITE = 77
};
2016-03-06 21:51:07 +00:00
/* [3] Methodes
=========================================================*/
int main();
2016-03-08 18:23:35 +00:00
void display_board(ChessContext& ctx);
void game_routine(ChessContext& ctx);
void chess_input(int* origin, int* dest);
2016-03-06 21:51:07 +00:00
#endif