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

Method handle

src/Menu/StartState.cpp:216–226  ·  view source on GitHub ↗

* The game quits if the player presses any key when an error * message is on display. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

214 * @param action Pointer to an action.
215 */
216void StartState::handle(Action *action)
217{
218 State::handle(action);
219 if (loading == LOADING_DONE)
220 {
221 if (action->getDetails()->type == SDL_KEYDOWN)
222 {
223 _game->quit();
224 }
225 }
226}
227
228/**
229 * Blinks the cursor and spreads out terminal output.

Callers

nothing calls this directly

Calls 2

getDetailsMethod · 0.80
quitMethod · 0.80

Tested by

no test coverage detected