* Resets the base building. * @param action Pointer to an action. */
| 82 | * @param action Pointer to an action. |
| 83 | */ |
| 84 | void SelectStartFacilityState::btnOkClick(Action *) |
| 85 | { |
| 86 | for (std::vector<BaseFacility*>::iterator i = _base->getFacilities()->begin(); i != _base->getFacilities()->end(); ++i) |
| 87 | { |
| 88 | delete *i; |
| 89 | } |
| 90 | _base->getFacilities()->clear(); |
| 91 | _game->popState(); |
| 92 | _game->popState(); |
| 93 | _game->pushState(new PlaceLiftState(_game, _base, _globe, true)); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Places the selected facility. |
nothing calls this directly
no test coverage detected