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

32 lines
626 B
C
Raw Permalink Normal View History

2016-03-06 21:51:07 +00:00
#ifndef DEF_PIECEFACTORY
#define DEF_PIECEFACTORY
/* [1] Libs
=========================================================*/
/* (1) Externes */
#include "../term.h"
2016-03-06 21:51:07 +00:00
#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"
2016-03-06 21:51:07 +00:00
#endif