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

Method executeAIDecision

game/state/battle/battleunit.cpp:4226–4236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4224}
4225
4226void BattleUnit::executeAIDecision(GameState &state, AIDecision &decision)
4227{
4228 if (decision.action)
4229 {
4230 executeAIAction(state, *decision.action);
4231 }
4232 if (decision.movement)
4233 {
4234 executeAIMovement(state, *decision.movement);
4235 }
4236}
4237
4238void BattleUnit::executeAIAction(GameState &state, AIAction &action)
4239{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected