X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHeroTag.h;h=c21f8570b63c5de5b2668502f3e876f9c806fd80;hb=adb1e3d5eafba2ef3de1499be286be330afaefef;hp=c60634853035bf58b76800c48e71b2e90d2f1426;hpb=628b3a7276d0b330719e05504b23bafcf88f8fca;p=l2e.git diff --git a/src/battle/HeroTag.h b/src/battle/HeroTag.h index c606348..c21f857 100644 --- a/src/battle/HeroTag.h +++ b/src/battle/HeroTag.h @@ -8,32 +8,40 @@ #ifndef BATTLE_HEROTAG_H_ #define BATTLE_HEROTAG_H_ +#include "Hero.h" #include "../geometry/Point.h" +#include "../geometry/Vector.h" #include +namespace graphics { + class Font; + class Frame; + class Gauge; + class Sprite; +} + namespace battle { -class Hero; +class BattleState; class HeroTag { public: - enum Alignment { - LEFT, - RIGHT - }; - -public: - HeroTag(const Hero *hero, Alignment align) : hero(hero), align(align) { } + HeroTag() : battle(0), index(0) { }; + HeroTag(const BattleState *battle, int heroIndex) + : battle(battle), index(heroIndex) { } ~HeroTag() { } public: + const graphics::Sprite *HeroSprite() const; + geometry::Vector HeroOffset() const; + void Render(SDL_Surface *screen, int width, int height, geometry::Point position, bool active) const; private: - const Hero *hero; - Alignment align; + const BattleState *battle; + int index; };