2016-03-08 18:23:35 +00:00
|
|
|
#ifndef DEF_CAVALIER_H
|
2016-03-06 21:51:07 +00:00
|
|
|
|
2016-03-08 18:23:35 +00:00
|
|
|
#define DEF_CAVALIER_H
|
2016-03-06 21:51:07 +00:00
|
|
|
|
|
|
|
/* [1] Libs
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Internes */
|
|
|
|
|
|
|
|
/* (2) Externes */
|
|
|
|
#include "Piece.h"
|
|
|
|
|
|
|
|
/* (3) Namespace */
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/* [2] Definition
|
|
|
|
=========================================================*/
|
|
|
|
class Cavalier : public Piece{
|
|
|
|
public:
|
|
|
|
Cavalier(int x, int y);
|
|
|
|
|
|
|
|
// ABSTRACT
|
2016-03-08 22:39:21 +00:00
|
|
|
bool can(int x, int y);
|
2016-03-06 21:51:07 +00:00
|
|
|
char getchar();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/* [n] Inclusion du corps
|
|
|
|
=========================================================*/
|
2016-03-08 22:39:21 +00:00
|
|
|
#include "Cavalier.cpp"
|
2016-03-06 21:51:07 +00:00
|
|
|
|
|
|
|
#endif
|