MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / isVoid

Method isVoid

src/Savegame/Tile.cpp:224–227  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

222 * @return bool True if there is nothing but air on this tile.
223 */
224bool 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.

Callers 5

saveMethod · 0.80
drawTerrainMethod · 0.80
explodeMethod · 0.80
castedShadeMethod · 0.80
voxelCheckMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected