2016-03-08 18:23:35 +00:00
|
|
|
#ifndef DEF_CHESSCONTEXT_H
|
|
|
|
|
|
|
|
#define DEF_CHESSCONTEXT_H
|
|
|
|
|
|
|
|
/* [1] Libs
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Internes */
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
/* (2) Externes */
|
|
|
|
#include "term.h"
|
|
|
|
#include "Player.h"
|
|
|
|
|
|
|
|
/* (3) Namespace */
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
/* [2] Definition
|
|
|
|
=========================================================*/
|
|
|
|
class ChessContext{
|
|
|
|
public:
|
|
|
|
ChessContext();
|
|
|
|
void init();
|
|
|
|
Player* at(const int x, const int y);
|
|
|
|
|
|
|
|
// ATTRIBUTS
|
|
|
|
char _turn;
|
|
|
|
Player *_p1;
|
|
|
|
Player *_p2;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* [n] Inclusion du corps
|
|
|
|
=========================================================*/
|
2016-03-08 20:06:36 +00:00
|
|
|
// #include "ChessContext.cpp"
|
2016-03-08 18:23:35 +00:00
|
|
|
|
|
|
|
#endif
|