Gets the value from the placement reserve array, 0 if position is invalid
| 147 | |
| 148 | // Gets the value from the placement reserve array, 0 if position is invalid |
| 149 | unsigned char getValue(int x, int y) const |
| 150 | { |
| 151 | if ( isValidPos(x,y) ) |
| 152 | return data[y][x]; |
| 153 | return 0; |
| 154 | }; |
| 155 | unsigned char getValue(TilePosition p) const |
| 156 | { |
| 157 | return this->getValue(p.x,p.y); |
no outgoing calls
no test coverage detected