00001 /* 00002 * Copyright (C) 2004 Ivo Danihelka (ivo@danihelka.net) 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 */ 00009 #include "GameInput.h" 00010 00011 #include "MenuHelp.h" 00012 #include "MenuOptions.h" 00013 00014 //----------------------------------------------------------------- 00015 /** 00016 * Push help screen at top. 00017 */ 00018 void 00019 GameInput::enableHelp() 00020 { 00021 m_state->pushState(new MenuHelp()); 00022 } 00023 //----------------------------------------------------------------- 00024 /** 00025 * Push menu state at top. 00026 */ 00027 void 00028 GameInput::enableMenu() 00029 { 00030 m_state->pushState(new MenuOptions()); 00031 } 00032