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

Method btnOkClick

src/Geoscape/BaseDefenseState.cpp:207–217  ·  view source on GitHub ↗

* Returns to the previous screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

205 * @param action Pointer to an action.
206 */
207void BaseDefenseState::btnOkClick(Action *)
208{
209 _timer->stop();
210 _game->popState();
211 if(_ufo->getStatus() != Ufo::DESTROYED)
212 {
213 // Whatever happens in the base defense, the UFO has finished its duty
214 _ufo->setStatus(Ufo::DESTROYED);
215 _state->handleBaseDefense(_base, _ufo);
216 }
217}
218}

Callers

nothing calls this directly

Calls 5

handleBaseDefenseMethod · 0.80
stopMethod · 0.45
popStateMethod · 0.45
getStatusMethod · 0.45
setStatusMethod · 0.45

Tested by

no test coverage detected