]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
added Frame class for drawing bordered windows
[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 { class Frame; }
16
17 namespace battle {
18
19 class AttackChoice;
20 class Hero;
21
22 class HeroTag {
23
24 public:
25         enum Alignment {
26                 LEFT,
27                 RIGHT
28         };
29
30 public:
31         HeroTag(const Hero *hero, const AttackChoice *choice, const graphics::Frame *frame, const graphics::Frame *activeFrame, Alignment align)
32         : hero(hero), choice(choice), frame(frame), activeFrame(activeFrame), align(align) { }
33         ~HeroTag() { }
34
35 public:
36         void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position, bool active) const;
37
38 private:
39         const Hero *hero;
40         const AttackChoice *choice;
41         const graphics::Frame *frame;
42         const graphics::Frame *activeFrame;
43         Alignment align;
44
45 };
46
47 }
48
49 #endif /* BATTLE_HEROTAG_H_ */