Debian Codegraph @

src/state/GameInput.cpp

raw
1 /*
2 * Copyright (C) 2004 Ivo Danihelka ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9 #include "GameInput.h"
10
11 #include "MenuHelp.h"
12 #include "MenuOptions.h"
13
14 //-----------------------------------------------------------------
15 /**
16 * Push help screen at top.
17 */
18 void
19 GameInput::enableHelp()
20 {
21 m_state->pushState(new MenuHelp());
22 }
23 //-----------------------------------------------------------------
24 /**
25 * Push menu state at top.
26 */
27 void
28 GameInput::enableMenu()
29 {
30 m_state->pushState(new MenuOptions());
31 }
32