30 lines
603 B
C
30 lines
603 B
C
|
#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
|
||
|
=========================================================*/
|
||
|
#include "PieceFactory.cpp"
|
||
|
|
||
|
#endif
|