* The game quits if the player presses any key when an error * message is on display. * @param action Pointer to an action. */
| 214 | * @param action Pointer to an action. |
| 215 | */ |
| 216 | void 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. |
nothing calls this directly
no test coverage detected