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

Method orderFire

game/ui/tileview/battleview.cpp:2832–2839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2830}
2831
2832void BattleView::orderFire(Vec3<int> target, WeaponStatus status, bool modifier)
2833{
2834 bool atGround = modifier || !config().getBool("OpenApoc.NewFeature.AllowForceFiringParallel");
2835 for (auto &unit : battle.battleViewSelectedUnits)
2836 {
2837 unit->startAttacking(*state, target, status, atGround);
2838 }
2839}
2840
2841void BattleView::orderFire(StateRef<BattleUnit> shooter, Vec3<int> target, WeaponStatus status)
2842{

Callers

nothing calls this directly

Calls 5

getBoolMethod · 0.80
startAttackingMethod · 0.80
emptyMethod · 0.80
hasLineToUnitMethod · 0.80
sendAgentEventMethod · 0.80

Tested by

no test coverage detected