| 103 | } |
| 104 | |
| 105 | bool Tile::getCanStand(bool large) |
| 106 | { |
| 107 | if (large) |
| 108 | { |
| 109 | if (position.x < 1 || position.y < 1) |
| 110 | { |
| 111 | LogError( |
| 112 | "Trying to get standing ability for a large unit when it can't fit! %d, %d, %d", |
| 113 | position.x, position.y, position.z); |
| 114 | return false; |
| 115 | } |
| 116 | if (canStand || map.getTile(position.x - 1, position.y, position.z)->canStand || |
| 117 | map.getTile(position.x, position.y - 1, position.z)->canStand || |
| 118 | map.getTile(position.x - 1, position.y - 1, position.z)->canStand) |
| 119 | { |
| 120 | return true; |
| 121 | } |
| 122 | } |
| 123 | else |
| 124 | { |
| 125 | if (canStand) |
| 126 | { |
| 127 | return true; |
| 128 | } |
| 129 | } |
| 130 | return false; |
| 131 | } |
| 132 | |
| 133 | bool Tile::getHasExit(bool large) |
| 134 | { |
no test coverage detected