118 |
} |
} |
119 |
|
|
120 |
|
|
121 |
|
/********************************************************* |
122 |
|
*********************************************************/ |
123 |
|
|
124 |
|
char Board::getChar(int iRow, int iCol) const |
125 |
|
{ |
126 |
|
char letter = 0; |
127 |
|
Tile tile = getTile(iRow, iCol); |
128 |
|
if (!tile.isEmpty()) |
129 |
|
{ |
130 |
|
letter = tile.toChar(); |
131 |
|
if (isJoker(iRow, iCol)) |
132 |
|
letter = tolower(letter); |
133 |
|
} |
134 |
|
return letter; |
135 |
|
} |
136 |
|
|
137 |
|
int Board::getCharAttr(int iRow, int iCol) const |
138 |
|
{ |
139 |
|
int t = getTestChar(iRow, iCol); |
140 |
|
int j = isJoker(iRow, iCol); |
141 |
|
return (t << 1) | j; |
142 |
|
} |
143 |
|
|
144 |
|
|
145 |
bool Board::isVacant(int iRow, int iCol) const |
bool Board::isVacant(int iRow, int iCol) const |
146 |
{ |
{ |
147 |
if (iRow < 1 || iRow > BOARD_DIM || |
if (iRow < 1 || iRow > BOARD_DIM || |