* Display stats of an agent * @agent - the agent */
| 376 | * @agent - the agent |
| 377 | */ |
| 378 | void RecruitScreen::displayAgentStats(const Agent &agent) |
| 379 | { |
| 380 | |
| 381 | switch (agent.type->role) |
| 382 | { |
| 383 | case AgentType::Role::Soldier: |
| 384 | AgentSheet(formAgentStats).display(agent, bigUnitRanks, false); |
| 385 | formAgentStats->setVisible(true); |
| 386 | formPersonnelStats->setVisible(false); |
| 387 | break; |
| 388 | default: |
| 389 | personnelSheet(agent, formPersonnelStats); |
| 390 | formAgentStats->setVisible(false); |
| 391 | formPersonnelStats->setVisible(true); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Fills the form of personnel's statistics. Such as skill and that's all. |
nothing calls this directly
no test coverage detected