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

Method canFly

game/state/battle/battleunit.cpp:1498–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1496}
1497
1498bool BattleUnit::canFly() const
1499{
1500 return isConscious() && agent->isBodyStateAllowed(BodyState::Flying);
1501}
1502
1503bool BattleUnit::canMove() const
1504{

Callers 6

initialUnitSpawnMethod · 0.80
BattleUnitTileHelperMethod · 0.80
startMethod · 0.80
setPathToMethod · 0.80
advanceAlongPathMethod · 0.80
updatePathPreviewMethod · 0.80

Calls 1

isBodyStateAllowedMethod · 0.80

Tested by

no test coverage detected