| 4465 | } |
| 4466 | |
| 4467 | AgentInfo BattleView::createUnitInfo(int index) |
| 4468 | { |
| 4469 | sp<Agent> a; |
| 4470 | if (battle.battleViewSquadIndex != -1 && |
| 4471 | battle.forces[battle.currentPlayer].squads[battle.battleViewSquadIndex].getNumUnits() > |
| 4472 | index) |
| 4473 | { |
| 4474 | a = battle.forces[battle.currentPlayer] |
| 4475 | .squads[battle.battleViewSquadIndex] |
| 4476 | .units[index] |
| 4477 | ->agent; |
| 4478 | } |
| 4479 | return ControlGenerator::createAgentInfo(*state, a); |
| 4480 | } |
| 4481 | |
| 4482 | void BattleView::updateUnitInfo(int index) |
| 4483 | { |
nothing calls this directly
no test coverage detected