lab.cpp/Chess/dep/Pieces/PieceFactory.h

32 lines
626 B
C++

#ifndef DEF_PIECEFACTORY
#define DEF_PIECEFACTORY
/* [1] Libs
=========================================================*/
/* (1) Externes */
#include "../term.h"
#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