00001 00006 /* Copyright © 2010 James Legg. 00007 This program is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation, either version 3 of the License, or 00010 (at your option) any later version. 00011 */ 00012 00013 #ifndef UI_PAUSE_MENU_H_ 00014 #define UI_PAUSE_MENU_H_ 00015 00016 #include "Menu.h" 00017 00018 namespace UI 00019 { 00020 00021 class PauseMenu; 00022 00024 class ContinueButton 00025 : public MenuItem 00026 { 00027 public: 00028 ContinueButton(PauseMenu & menu); 00029 virtual void activate(); 00030 protected: 00031 PauseMenu & m_menu; 00032 }; 00033 00035 class QuitButton 00036 : public MenuItem 00037 { 00038 public: 00039 QuitButton(PauseMenu & menu); 00040 virtual void activate(); 00041 protected: 00042 PauseMenu & m_menu; 00043 }; 00044 00045 class PauseMenu 00046 : public Menu 00047 { 00048 public: 00050 enum Response { 00052 R_NONE, 00054 R_CONTINUE, 00056 R_QUIT}; 00057 PauseMenu(); 00059 void set_response(Response response); 00061 Response get_response() const; 00063 void reset(); 00064 protected: 00065 ContinueButton m_continue_item; 00066 QuitButton m_quit_item; 00067 Response m_response; 00068 }; 00069 00070 } // namespace UI 00071 00072 #endif // UI_PAUSE_MENU_H_
Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.