| 76 | sp<BattleMapPart> Tile::getItemSupportingObject() { return supportProviderForItems; } |
| 77 | |
| 78 | bool Tile::getSolidGround(bool large) |
| 79 | { |
| 80 | if (large) |
| 81 | { |
| 82 | if (position.x < 1 || position.y < 1) |
| 83 | { |
| 84 | LogError("Trying to get solid ground for a large unit when it can't fit! %d, %d, %d", |
| 85 | position.x, position.y, position.z); |
| 86 | return false; |
| 87 | } |
| 88 | if (solidGround || map.getTile(position.x - 1, position.y, position.z)->solidGround || |
| 89 | map.getTile(position.x, position.y - 1, position.z)->solidGround || |
| 90 | map.getTile(position.x - 1, position.y - 1, position.z)->solidGround) |
| 91 | { |
| 92 | return true; |
| 93 | } |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | if (solidGround) |
| 98 | { |
| 99 | return true; |
| 100 | } |
| 101 | } |
| 102 | return false; |
| 103 | } |
| 104 | |
| 105 | bool Tile::getCanStand(bool large) |
| 106 | { |