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_SKILL_H 19 #define EP_SCENE_SKILL_H 20 21 // Headers 22 #include "scene.h" 23 #include "window_help.h" 24 #include "window_skill.h" 25 #include "window_skillstatus.h" 26 27 /** 28 * Scene_Skill class. 29 */ 30 class Scene_Skill : public Scene { 31 32 public: 33 /** 34 * Constructor. 35 */ 36 Scene_Skill(int actor_index, int skill_index = 0); 37 38 void Start() override; 39 void Continue(SceneType prev_scene) override; 40 void Update() override; 41 void TransitionOut(SceneType next_scene) override; 42 43 private: 44 /** Actor in the party whose skills are displayed. */ 45 int actor_index; 46 /** Skill to select at startup. */ 47 int skill_index; 48 /** Displays available skills. */ 49 std::unique_ptr<Window_Skill> skill_window; 50 /** Displays information about the actor. */ 51 std::unique_ptr<Window_SkillStatus> skillstatus_window; 52 /** Displays description about the selected skill. */ 53 std::unique_ptr<Window_Help> help_window; 54 }; 55 56 #endif 57