1 /*
2 Copyright © 2011-2012 Pavel Kirpichyov (Cheshire)
3 Copyright © 2014 Henrik Andersson
4 Copyright © 2012-2014 Justin Jacobs
5 
6 This file is part of FLARE.
7 
8 FLARE is free software: you can redistribute it and/or modify it under the terms
9 of the GNU General Public License as published by the Free Software Foundation,
10 either version 3 of the License, or (at your option) any later version.
11 
12 FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License along with
17 FLARE.  If not, see http://www.gnu.org/licenses/
18 */
19 
20 /**
21  * MenuEnemy
22  *
23  * Handles the display of the Enemy info of the screen
24  */
25 
26 #ifndef MENU_ENEMY_H
27 #define MENU_ENEMY_H
28 
29 #include "CommonIncludes.h"
30 #include "Utils.h"
31 #include "WidgetLabel.h"
32 
33 class Entity;
34 
35 class MenuEnemy : public Menu {
36 private:
37 	Sprite *bar_hp;
38 	Rect bar_pos;
39 	LabelInfo text_pos;
40 	bool custom_text_pos;
41 	Point bar_fill_offset;
42 	Point bar_fill_size;
43 
44 	WidgetLabel label_text;
45 	WidgetLabel label_stats;
46 public:
47 	MenuEnemy();
48 	~MenuEnemy();
49 	Entity *enemy;
50 	void loadGraphics();
51 	void handleNewMap();
52 	void logic();
53 	void render();
54 	Timer timeout;
55 };
56 
57 #endif
58