| 211 | } |
| 212 | |
| 213 | void TransferScreen::displayItem(sp<TransactionControl> control) |
| 214 | { |
| 215 | TransactionScreen::displayItem(control); |
| 216 | |
| 217 | switch (control->itemType) |
| 218 | { |
| 219 | case TransactionControl::Type::BioChemist: |
| 220 | case TransactionControl::Type::Engineer: |
| 221 | case TransactionControl::Type::Physicist: |
| 222 | { |
| 223 | RecruitScreen::personnelSheet(*state->agents[control->itemId], formPersonnelStats); |
| 224 | formPersonnelStats->setVisible(true); |
| 225 | break; |
| 226 | } |
| 227 | case TransactionControl::Type::Soldier: |
| 228 | { |
| 229 | AgentSheet(formAgentStats) |
| 230 | .display(*state->agents[control->itemId], bigUnitRanks, false); |
| 231 | formAgentStats->setVisible(true); |
| 232 | break; |
| 233 | } |
| 234 | default: |
| 235 | break; |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | void TransferScreen::closeScreen() |
| 240 | { |
nothing calls this directly
no test coverage detected