* Gets whether this tile has no objects. Note that we can have a unit or smoke on this tile. * @return bool True if there is nothing but air on this tile. */
| 222 | * @return bool True if there is nothing but air on this tile. |
| 223 | */ |
| 224 | bool Tile::isVoid() const |
| 225 | { |
| 226 | return _objects[0] == 0 && _objects[1] == 0 && _objects[2] == 0 && _objects[3] == 0 && _smoke == 0 && _inventory.empty(); |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Get the TU cost to walk over a certain part of the tile. |
no test coverage detected