#ifndef _PIECE_H_ #define _PIECE_H_ #include #include #include #include using std::string; using std::cout; using std::endl; using std::vector; typedef struct { int row; int col; } POINT; class Piece { private: string name; int row; int col; int w; int h; char dir; vector haveBeen; public: Piece(void); Piece(string, int = 0, int = 0, int = 0, int = 0, char = 0); string getName(void); int getRow(void); int getCol(void); int getW(void); int getH(void); char getDir(void); void markPos(void); vector *gethaveBeen(void); void setRow(int); void setCol(int); }; #endif