00001 00002 // Copyright (C) 2004-2007 by The Allacrost Project 00003 // All Rights Reserved 00004 // 00005 // This code is licensed under the GNU GPL version 2. It is free software 00006 // and you may modify it and/or redistribute it under the terms of this license. 00007 // See http://www.gnu.org/copyleft/gpl.html for details. 00009 00024 #ifndef __QUIT_HEADER__ 00025 #define __QUIT_HEADER__ 00026 00027 #include "utils.h" 00028 #include <string> 00029 #include "defs.h" 00030 #include "mode_manager.h" 00031 #include "video.h" 00032 #include "gui.h" 00033 00034 00036 namespace hoa_quit { 00037 00039 extern bool QUIT_DEBUG; 00040 00042 namespace private_quit { 00043 00045 00046 00047 const uint8 QUIT_GAME = 0; 00048 const uint8 QUIT_TO_BOOTMENU = 1; 00049 const uint8 QUIT_CANCEL = 2; 00051 00052 } // namespace private_quit 00053 00081 class QuitMode : public hoa_mode_manager::GameMode { 00082 private: 00084 uint8 _quit_type; 00086 hoa_video::StillImage _saved_screen; 00088 hoa_video::StillImage _quit_menu; 00090 hoa_video::OptionBox _option_box; 00091 00093 void _QuitGame(); 00095 void _QuitToBootMenu(); 00097 void _Cancel(); 00098 00099 public: 00100 QuitMode(); 00101 ~QuitMode(); 00102 00104 void Reset(); 00106 void Update(); 00108 void Draw(); 00109 00110 }; // class QuitMode 00111 00112 } // namespace hoa_quit 00113 00114 #endif
1.5.1