Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
471
sp<TileObjectBattleUnit> Tile::getUnitIfPresent() const { return firstUnitPresent; }
472
473
sp<TileObjectBattleUnit> Tile::getUnitIfPresent(bool onlyConscious, bool mustOccupy,
474
bool mustBeStatic,
Callers
12
spawnReinforcements
Method · 0.80
canProne
Method · 0.80
updateMovementFalling
Method · 0.80
tryToRiseUp
Method · 0.80
useBrainsucker
Method · 0.80
canEnterTile
Method · 0.80
start
Method · 0.80
setPathTo
Method · 0.80
updateSelectionMode
Method · 0.80
updatePathPreview
Method · 0.80
handleMouseDown
Method · 0.80
render
Method · 0.80
Calls
7
getTile
Method · 0.80
getUnit
Method · 0.80
isConscious
Method · 0.80
end
Method · 0.80
isStatic
Method · 0.80
isLarge
Method · 0.80
getType
Method · 0.45
Tested by
no test coverage detected