]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
removed lazy fwd headers
[l2e.git] / src / battle / HeroTag.h
1 #ifndef BATTLE_HEROTAG_H_
2 #define BATTLE_HEROTAG_H_
3
4 namespace battle {
5         class BattleState;
6 }
7 namespace graphics {
8         class Sprite;
9 }
10 namespace math {
11         template<class>
12         class Vector;
13 }
14
15 #include <SDL.h>
16
17 namespace battle {
18
19 class HeroTag {
20
21 public:
22         HeroTag() : battle(0), index(0) { }
23         HeroTag(const BattleState *battle, int heroIndex)
24         : battle(battle), index(heroIndex) { }
25
26 public:
27         const graphics::Sprite *HeroSprite() const;
28         math::Vector<int> HeroOffset() const;
29
30         void Render(SDL_Surface *screen, int width, int height, const math::Vector<int> &position, bool active) const;
31
32 private:
33         const BattleState *battle;
34         int index;
35
36 };
37
38 }
39
40 #endif /* BATTLE_HEROTAG_H_ */