]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/HeroTag.h
added prototype for battle's hero tags
[l2e.git] / src / battle / HeroTag.h
diff --git a/src/battle/HeroTag.h b/src/battle/HeroTag.h
new file mode 100644 (file)
index 0000000..e0d3a5a
--- /dev/null
@@ -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 <SDL.h>
+
+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<int> position) const;
+
+private:
+       const Hero *hero;
+       Alignment align;
+
+};
+
+}
+
+#endif /* BATTLE_HEROTAG_H_ */