* Returns to the previous screen. * @param action Pointer to an action. */
| 205 | * @param action Pointer to an action. |
| 206 | */ |
| 207 | void 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 | } |
nothing calls this directly
no test coverage detected