--------------------------------------------- IS BUILDABLE -----------------------------------------------
| 384 | } |
| 385 | //--------------------------------------------- IS BUILDABLE ----------------------------------------------- |
| 386 | bool GameImpl::isBuildable(int x, int y, bool includeBuildings) const |
| 387 | { |
| 388 | if ( Map::buildable(x,y) ) |
| 389 | { |
| 390 | if ( includeBuildings && this->isVisible(x,y) && Map::isOccupied(x,y) ) |
| 391 | return false; |
| 392 | return true; |
| 393 | } |
| 394 | return false; |
| 395 | } |
| 396 | //--------------------------------------------- IS VISIBLE ------------------------------------------------- |
| 397 | bool GameImpl::isVisible(int x, int y) const |
| 398 | { |