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

Method displayAgentStats

game/ui/base/recruitscreen.cpp:378–393  ·  view source on GitHub ↗

* Display stats of an agent * @agent - the agent */

Source from the content-addressed store, hash-verified

376 * @agent - the agent
377 */
378void 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.

Callers

nothing calls this directly

Calls 3

AgentSheetClass · 0.85
displayMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected