X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHeroTag.h;h=f1408fd1882b6c5b0dfb413ba37a24702e617f7f;hb=fde7b27297882a7f033641df92e732abd137b532;hp=c60634853035bf58b76800c48e71b2e90d2f1426;hpb=628b3a7276d0b330719e05504b23bafcf88f8fca;p=l2e.git diff --git a/src/battle/HeroTag.h b/src/battle/HeroTag.h index c606348..f1408fd 100644 --- a/src/battle/HeroTag.h +++ b/src/battle/HeroTag.h @@ -8,32 +8,39 @@ #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 - }; + HeroTag() : battle(0), index(0) { } + HeroTag(const BattleState *battle, int heroIndex) + : battle(battle), index(heroIndex) { } public: - HeroTag(const Hero *hero, Alignment align) : hero(hero), align(align) { } - ~HeroTag() { } + const graphics::Sprite *HeroSprite() const; + geometry::Vector HeroOffset() const; -public: 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; };