2016-03-06 21:51:07 +00:00
|
|
|
#ifndef DEF_PIECEFACTORY
|
|
|
|
|
|
|
|
#define DEF_PIECEFACTORY
|
|
|
|
|
|
|
|
/* [1] Libs
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Externes */
|
|
|
|
#include "Roi.h"
|
|
|
|
#include "Reine.h"
|
|
|
|
#include "Cavalier.h"
|
|
|
|
#include "Tour.h"
|
|
|
|
#include "Fou.h"
|
|
|
|
#include "Pion.h"
|
|
|
|
|
|
|
|
/* (2) Namespace */
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/* [2] Definition
|
|
|
|
=========================================================*/
|
|
|
|
class PieceFactory{
|
|
|
|
public:
|
|
|
|
static Piece& create(PIECE_TYPE t, int x, int y);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/* [n] Inclusion du corps
|
|
|
|
=========================================================*/
|
2016-03-08 20:06:36 +00:00
|
|
|
// #include "PieceFactory.cpp"
|
2016-03-06 21:51:07 +00:00
|
|
|
|
|
|
|
#endif
|