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_ITEM_H
19 #define EP_SCENE_ITEM_H
20 
21 // Headers
22 #include "scene.h"
23 #include "window_help.h"
24 #include "window_item.h"
25 
26 /**
27  * Scene_Item class.
28  */
29 class Scene_Item : public Scene {
30 
31 public:
32 	/**
33 	 * Constructor.
34 	 *
35 	 * @param item_index index to select.
36 	 */
37 	Scene_Item(int item_index = 0);
38 
39 	void Start() override;
40 	void Continue(SceneType prev_scene) override;
41 	void Update() override;
42 	void TransitionOut(Scene::SceneType next_scene) override;
43 
44 private:
45 	/** Displays description about the selected item. */
46 	std::unique_ptr<Window_Help> help_window;
47 	/** Displays available items. */
48 	std::unique_ptr<Window_Item> item_window;
49 	/** Index of item selected on startup. */
50 	int item_index;
51 };
52 
53 #endif
54