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