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