MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getUnitIfPresent

Method getUnitIfPresent

game/state/tilemap/tile.cpp:471–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471sp<TileObjectBattleUnit> Tile::getUnitIfPresent() const { return firstUnitPresent; }
472
473sp<TileObjectBattleUnit> Tile::getUnitIfPresent(bool onlyConscious, bool mustOccupy,
474 bool mustBeStatic,

Callers 12

spawnReinforcementsMethod · 0.80
canProneMethod · 0.80
updateMovementFallingMethod · 0.80
tryToRiseUpMethod · 0.80
useBrainsuckerMethod · 0.80
canEnterTileMethod · 0.80
startMethod · 0.80
setPathToMethod · 0.80
updateSelectionModeMethod · 0.80
updatePathPreviewMethod · 0.80
handleMouseDownMethod · 0.80
renderMethod · 0.80

Calls 7

getTileMethod · 0.80
getUnitMethod · 0.80
isConsciousMethod · 0.80
endMethod · 0.80
isStaticMethod · 0.80
isLargeMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected