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_WINDOW_EQUIPITEM_H
19 #define EP_WINDOW_EQUIPITEM_H
20 
21 // Headers
22 #include "window_item.h"
23 
24 /**
25  * Window_EquipItem class.
26  * Displays the available equipment of a specific type.
27  */
28 class Window_EquipItem : public Window_Item {
29 
30 public:
31 	/** Enum containing the different equipment types. */
32 	enum EquipType {
33 		weapon = 0,
34 		shield,
35 		armor,
36 		helmet,
37 		other
38 	};
39 
40 	/**
41 	 * Constructor.
42 	 *
43 	 * @param actor_id actor whos equipment is displayed.
44 	 * @param equip_type type of equipment to show.
45 	 */
46 	Window_EquipItem(int actor_id, int equip_type);
47 
48 	/**
49 	 * Checks if the item should be in the list based on
50 	 * the type.
51 	 *
52 	 * @param item_id item to check.
53 	 */
54 	bool CheckInclude(int item_id) override;
55 
56 	/**
57 	 * Chechs if item should be enabled. Always true.
58 	 *
59 	 * @param item_id item to check.
60 	 */
61 	bool CheckEnable(int item_id) override;
62 
63 private:
64 	int actor_id;
65 	int equip_type;
66 };
67 
68 #endif
69