X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHeroTag.h;fp=src%2Fbattle%2FHeroTag.h;h=e0d3a5aa4ac381f9600305cb19a4caa79241f509;hb=010a336797f1419945bed60560cc61fb492793f4;hp=0000000000000000000000000000000000000000;hpb=c0860451b5fd681c3b3b8d985e8831276bbd917f;p=l2e.git diff --git a/src/battle/HeroTag.h b/src/battle/HeroTag.h new file mode 100644 index 0000000..e0d3a5a --- /dev/null +++ b/src/battle/HeroTag.h @@ -0,0 +1,42 @@ +/* + * HeroTag.h + * + * Created on: Aug 6, 2012 + * Author: holy + */ + +#ifndef BATTLE_HEROTAG_H_ +#define BATTLE_HEROTAG_H_ + +#include "../geometry/Point.h" + +#include + +namespace battle { + +class Hero; + +class HeroTag { + +public: + enum Alignment { + LEFT, + RIGHT + }; + +public: + HeroTag(const Hero *hero, Alignment align) : hero(hero), align(align) { } + ~HeroTag() { } + +public: + void Render(SDL_Surface *screen, int width, int height, geometry::Point position) const; + +private: + const Hero *hero; + Alignment align; + +}; + +} + +#endif /* BATTLE_HEROTAG_H_ */