]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
d361252dec1e48070ad9197b8d112981eb662cf4
[l2e.git] / src / battle / HeroTag.h
1 /*
2  * HeroTag.h
3  *
4  *  Created on: Aug 6, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_HEROTAG_H_
9 #define BATTLE_HEROTAG_H_
10
11 #include "../geometry/Point.h"
12
13 #include <SDL.h>
14
15 namespace graphics {
16         class Font;
17         class Frame;
18         class Gauge;
19         class Sprite;
20 }
21
22 namespace battle {
23
24 class AttackChoice;
25 class Hero;
26 struct Resources;
27
28 class HeroTag {
29
30 public:
31         enum Alignment {
32                 LEFT,
33                 RIGHT
34         };
35
36 public:
37         HeroTag(const Hero *hero, const AttackChoice *choice, const Resources *res, Alignment align)
38         : hero(hero), choice(choice), res(res), align(align) { }
39         ~HeroTag() { }
40
41 public:
42         void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position, bool active) const;
43
44 private:
45         const Hero *hero;
46         const AttackChoice *choice;
47         const Resources *res;
48         Alignment align;
49
50 };
51
52 }
53
54 #endif /* BATTLE_HEROTAG_H_ */