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

Method isInExitArea

src/Savegame/BattleUnit.cpp:1836–1839  ·  view source on GitHub ↗

* Check if this unit is in the exit area. * @param stt Type of exit tile to check for. * @return Is in the exit area? */

Source from the content-addressed store, hash-verified

1834 * @return Is in the exit area?
1835 */
1836bool BattleUnit::isInExitArea(SpecialTileType stt) const
1837{
1838 return _tile && _tile->getMapData(MapData::O_FLOOR) && (_tile->getMapData(MapData::O_FLOOR)->getSpecialType() == stt);
1839}
1840
1841/**
1842 * Gets the unit height taking into account kneeling/standing.

Callers 3

nextStageMethod · 0.80
prepareDebriefingMethod · 0.80
AbortMissionStateMethod · 0.80

Calls 2

getSpecialTypeMethod · 0.80
getMapDataMethod · 0.45

Tested by

no test coverage detected