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

Method facilityBuilt

src/Basescape/SelectStartFacilityState.cpp:109–121  ·  view source on GitHub ↗

* Callback from PlaceStartFacilityState. * Removes placed facility from the list. */

Source from the content-addressed store, hash-verified

107 * Removes placed facility from the list.
108 */
109void SelectStartFacilityState::facilityBuilt()
110{
111 _facilities.erase(_facilities.begin() + _lstFacilities->getSelectedRow());
112 if (_facilities.empty())
113 {
114 _game->popState();
115 _game->popState(); // return to geoscape, force timer to start.
116 }
117 else
118 {
119 populateBuildList();
120 }
121}
122
123}

Callers 1

viewClickMethod · 0.80

Calls 3

getSelectedRowMethod · 0.80
emptyMethod · 0.45
popStateMethod · 0.45

Tested by

no test coverage detected