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

Method BattleUnitTileHelper

game/state/battle/battleunitmission.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31} // namespace
32
33BattleUnitTileHelper::BattleUnitTileHelper(TileMap &map, BattleUnitType type, bool allowJumping)
34 : BattleUnitTileHelper(
35 map, (type == BattleUnitType::LargeFlyer || type == BattleUnitType::LargeWalker),
36 (type == BattleUnitType::LargeFlyer || type == BattleUnitType::SmallFlyer), allowJumping,
37 (type == BattleUnitType::LargeFlyer || type == BattleUnitType::LargeWalker) ? 70 : 32,
38 nullptr)
39{
40}
41
42BattleUnitTileHelper::BattleUnitTileHelper(TileMap &map, bool large, bool flying, bool allowJumping,
43 int maxHeight, sp<TileObjectBattleUnit> tileObject)

Callers

nothing calls this directly

Calls 3

isLargeMethod · 0.80
canFlyMethod · 0.80
isBodyStateAllowedMethod · 0.80

Tested by

no test coverage detected