]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
9ce1963cb854209d8ef177a9080deb5dbdada9c6
[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 "fwd.h"
12 #include "Hero.h"
13 #include "../geometry/Vector.h"
14 #include "../graphics/fwd.h"
15
16 #include <SDL.h>
17
18 namespace battle {
19
20 class HeroTag {
21
22 public:
23         HeroTag() : battle(0), index(0) { }
24         HeroTag(const BattleState *battle, int heroIndex)
25         : battle(battle), index(heroIndex) { }
26
27 public:
28         const graphics::Sprite *HeroSprite() const;
29         geometry::Vector<int> HeroOffset() const;
30
31         void Render(SDL_Surface *screen, int width, int height, const geometry::Vector<int> &position, bool active) const;
32
33 private:
34         const BattleState *battle;
35         int index;
36
37 };
38
39 }
40
41 #endif /* BATTLE_HEROTAG_H_ */