1 /* 2 * This file is part of EasyRPG Player. 3 * 4 * EasyRPG Player 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 3 of the License, or 7 * (at your option) any later version. 8 * 9 * EasyRPG Player is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef EP_SCENE_END_H 19 #define EP_SCENE_END_H 20 21 // Headers 22 #include "scene.h" 23 #include "window_command.h" 24 #include "window_help.h" 25 26 /** 27 * Scene End class. 28 * Displays the "Do you really want to exit?" text. 29 */ 30 class Scene_End : public Scene { 31 32 public: 33 /** 34 * Constructor. 35 */ 36 Scene_End(); 37 38 void Start() override; 39 void Update() override; 40 41 /** 42 * Creates the Window displaying the yes and no option. 43 */ 44 void CreateCommandWindow(); 45 46 /** 47 * Creates the Window displaying the confirmation 48 * text. 49 */ 50 void CreateHelpWindow(); 51 52 private: 53 /** Help window showing the confirmation text. */ 54 std::unique_ptr<Window_Help> help_window; 55 /** Command window containing the yes and no option. */ 56 std::unique_ptr<Window_Command> command_window; 57 }; 58 59 #endif 60