| 243 | } |
| 244 | |
| 245 | void Seat::notifyVisionOnTile(Tile* tile) |
| 246 | { |
| 247 | if(mPlayer == nullptr) |
| 248 | return; |
| 249 | if(!mPlayer->getIsHuman()) |
| 250 | return; |
| 251 | |
| 252 | if(tile->getX() >= static_cast<int>(mTilesStates.size())) |
| 253 | { |
| 254 | OD_LOG_ERR("Tile=" + Tile::displayAsString(tile)); |
| 255 | return; |
| 256 | } |
| 257 | if(tile->getY() >= static_cast<int>(mTilesStates[tile->getX()].size())) |
| 258 | { |
| 259 | OD_LOG_ERR("Tile=" + Tile::displayAsString(tile)); |
| 260 | return; |
| 261 | } |
| 262 | |
| 263 | TileStateNotified& tileState = mTilesStates[tile->getX()][tile->getY()]; |
| 264 | tileState.mVisionTurnCurrent = true; |
| 265 | } |
| 266 | |
| 267 | void Seat::notifyTileClaimedByEnemy(Tile* tile) |
| 268 | { |
no test coverage detected