63 |
Board(); |
Board(); |
64 |
virtual ~Board() {} |
virtual ~Board() {} |
65 |
|
|
66 |
|
/************************* |
67 |
|
* Coordinates have to be BOARD_MIN <= int <= BOARD_MAX |
68 |
|
* |
69 |
|
* getChar returns an upper case letter for normal tiles and a |
70 |
|
* lower case letter for jokers. |
71 |
|
* |
72 |
|
* getCharAttr tells the attributes of the tile |
73 |
|
* 0 : normal played tile |
74 |
|
* 1 : joker tile |
75 |
|
* 2 : test tile for preview purpose |
76 |
|
* Attributes can be combined with the or (|) operator |
77 |
|
*************************/ |
78 |
|
#define ATTR_NORMAL 0 |
79 |
|
#define ATTR_JOKER 1 |
80 |
|
#define ATTR_TEST 2 |
81 |
|
|
82 |
|
char getChar (int iRow, int iCol) const; |
83 |
|
int getCharAttr(int iRow, int iCol) const; |
84 |
|
|
85 |
Tile getTile(int iRow, int iCol) const; |
Tile getTile(int iRow, int iCol) const; |
86 |
bool isJoker(int iRow, int iCol) const; |
bool isJoker(int iRow, int iCol) const; |
87 |
bool isVacant(int iRow, int iCol) const; |
bool isVacant(int iRow, int iCol) const; |
88 |
/*int score(Round);*/ |
|
89 |
void addRound(const Dictionary &iDic, const Round &iRound); |
void addRound(const Dictionary &iDic, const Round &iRound); |
90 |
void removeRound(const Dictionary &iDic, const Round &iRound); |
void removeRound(const Dictionary &iDic, const Round &iRound); |
91 |
int checkRound(Round &iRound, bool iFirstTurn); |
int checkRound(Round &iRound, bool iFirstTurn); |