// Chessman.h
// Because class Chessboard will include Chessman and it will access m_weightValue of class Chessman
// and m_weightValue should be declared by public.
class Chessman
{
protected:
enum m_Direction {Direction_TopLeft, Direction_Up, Direction_TopRight, Direction_Undefined} ;
public:
int m_weightValue[3] ;
Chessman (const int weightValueTowardsTopLeft = 0, const int weightValueTowardsUp = 0, const int weightValueTowardsTopRight = 0) ;
} ;
棋子类头文件C++
最新推荐文章于 2025-07-10 21:34:14 发布