104 |
} |
} |
105 |
|
|
106 |
|
|
107 |
|
char Board::getChar(int iRow, int iCol) const |
108 |
|
{ |
109 |
|
char letter = 0; |
110 |
|
Tile tile = getTile(iRow, iCol); |
111 |
|
if (!tile.isEmpty()) |
112 |
|
{ |
113 |
|
letter = tile.toChar(); |
114 |
|
if (isJoker(iRow, iCol)) |
115 |
|
letter = tolower(letter); |
116 |
|
} |
117 |
|
return letter; |
118 |
|
} |
119 |
|
|
120 |
|
int Board::getCharAttr(int iRow, int iCol) const |
121 |
|
{ |
122 |
|
int t = getTestChar(iRow, iCol); |
123 |
|
int j = isJoker(iRow, iCol); |
124 |
|
return (t << 1) | j; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
Tile Board::getTile(int iRow, int iCol) const |
Tile Board::getTile(int iRow, int iCol) const |
129 |
{ |
{ |
130 |
return m_tilesRow[iRow][iCol]; |
return m_tilesRow[iRow][iCol]; |