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

Method canMove

game/state/battle/battleunit.cpp:1503–1515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501}
1502
1503bool BattleUnit::canMove() const
1504{
1505 if (!isConscious() || agent->overEncumbred)
1506 {
1507 return false;
1508 }
1509 if (agent->isMovementStateAllowed(MovementState::Normal) ||
1510 agent->isMovementStateAllowed(MovementState::Running))
1511 {
1512 return true;
1513 }
1514 return false;
1515}
1516
1517bool BattleUnit::canProne(Vec3<int> pos, Vec2<int> fac) const
1518{

Callers 6

startMethod · 0.80
setPathToMethod · 0.80
thinkMethod · 0.80
updatePathPreviewMethod · 0.80
updateHiddenBarMethod · 0.80

Calls 1

Tested by

no test coverage detected