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

30 lines
603 B
C
Raw Normal View History

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
=========================================================*/
#include "PieceFactory.cpp"
#endif