31 lines
560 B
C
31 lines
560 B
C
|
#ifndef DEF_PION
|
||
|
|
||
|
#define DEF_PION
|
||
|
|
||
|
/* [1] Libs
|
||
|
=========================================================*/
|
||
|
/* (1) Internes */
|
||
|
|
||
|
/* (2) Externes */
|
||
|
#include "Piece.h"
|
||
|
|
||
|
/* (3) Namespace */
|
||
|
using namespace std;
|
||
|
|
||
|
/* [2] Definition
|
||
|
=========================================================*/
|
||
|
class Pion : public Piece{
|
||
|
public:
|
||
|
Pion(int x, int y);
|
||
|
|
||
|
// ABSTRACT
|
||
|
bool can(const int x, const int y) const;
|
||
|
char getchar();
|
||
|
|
||
|
};
|
||
|
|
||
|
/* [n] Inclusion du corps
|
||
|
=========================================================*/
|
||
|
#include "Pion.cpp"
|
||
|
|
||
|
#endif
|