]> git.localhorst.tv Git - l2e.git/blob - src/battle/SmallHeroTag.h
added small hero tags (used in battle animation and run state)
[l2e.git] / src / battle / SmallHeroTag.h
1 /*
2  * SmallHeroTag.h
3  *
4  *  Created on: Aug 11, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_SMALLHEROTAG_H_
9 #define BATTLE_SMALLHEROTAG_H_
10
11 #include "../geometry/Point.h"
12
13 #include <SDL.h>
14
15 namespace graphics {
16         class Font;
17         class Frame;
18         class Gauge;
19 }
20
21 namespace battle {
22
23 class BattleState;
24
25 class SmallHeroTag {
26
27 public:
28         SmallHeroTag() : battle(0), index(0) { }
29         SmallHeroTag(const BattleState *battle, int heroIndex)
30         : battle(battle), index(heroIndex) { }
31
32         void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position) const;
33
34 private:
35         const BattleState *battle;
36         int index;
37
38 };
39
40 }
41
42 #endif /* BATTLE_SMALLHEROTAG_H_ */