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

Method populateBuildList

src/Basescape/SelectStartFacilityState.cpp:71–78  ·  view source on GitHub ↗

* Populates the build list from the current "available" facilities. */

Source from the content-addressed store, hash-verified

69 * Populates the build list from the current "available" facilities.
70 */
71void SelectStartFacilityState::populateBuildList()
72{
73 _lstFacilities->clearList();
74 for (std::vector<RuleBaseFacility*>::iterator i = _facilities.begin(); i != _facilities.end(); ++i)
75 {
76 _lstFacilities->addRow(1, tr((*i)->getType()).c_str());
77 }
78}
79
80/**
81 * Resets the base building.

Callers

nothing calls this directly

Calls 3

clearListMethod · 0.80
addRowMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected