MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / init

Method init

src/Basescape/CraftArmorState.cpp:134–143  ·  view source on GitHub ↗

* The soldier armors can change * after going into other screens. */

Source from the content-addressed store, hash-verified

132 * after going into other screens.
133 */
134void CraftArmorState::init()
135{
136 State::init();
137 int row = 0;
138 for (std::vector<Soldier*>::iterator i = _base->getSoldiers()->begin(); i != _base->getSoldiers()->end(); ++i)
139 {
140 _lstSoldiers->setCellText(row, 2, tr((*i)->getArmor()->getType()));
141 row++;
142 }
143}
144
145/**
146 * Returns to the previous screen.

Callers

nothing calls this directly

Calls 5

initFunction · 0.85
setCellTextMethod · 0.80
getSoldiersMethod · 0.45
getTypeMethod · 0.45
getArmorMethod · 0.45

Tested by

no test coverage detected