X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHero.h;h=74449026f93efe706ac469222d895e6194808517;hb=cded7d136b41e22f363ec702f2288491c0006e3a;hp=fd90a1bb175b9e879e791111e3bd68e3d594f9d4;hpb=e3a38cbb756b2f0b77afcf91bf2a397bb1677bce;p=l2e.git diff --git a/src/battle/Hero.h b/src/battle/Hero.h index fd90a1b..7444902 100644 --- a/src/battle/Hero.h +++ b/src/battle/Hero.h @@ -8,8 +8,11 @@ #ifndef BATTLE_HERO_H_ #define BATTLE_HERO_H_ +#include "AttackChoice.h" #include "Stats.h" +#include "../geometry/Point.h" #include "../graphics/Animation.h" +#include "../graphics/Menu.h" #include #include @@ -24,6 +27,8 @@ namespace graphics { namespace battle { +class Resources; + class Hero { public: @@ -83,6 +88,21 @@ public: const graphics::Animation *AttackAnimation() const { return attackAnimation; } const graphics::Animation *SpellAnimation() const { return spellAnimation; } + geometry::Point &Position() { return position; } + const geometry::Point &Position() const { return position; } + + graphics::Menu &SpellMenu() { return spellMenu; } + const graphics::Menu &SpellMenu() const { return spellMenu; } + graphics::Menu &IkariMenu() { return ikariMenu; } + const graphics::Menu &IkariMenu() const { return ikariMenu; } + + AttackChoice &GetAttackChoice() { return attackChoice; } + const AttackChoice &GetAttackChoice() const { return attackChoice; } + +public: + void UpdateSpellMenu(); + void UpdateIkariMenu(const Resources *); + // temporary setters until loader is implemented public: void SetName(const char *n) { name = n; } @@ -127,6 +147,13 @@ private: graphics::AnimationRunner animation; + geometry::Point position; + + graphics::Menu spellMenu; + graphics::Menu ikariMenu; + + AttackChoice attackChoice; + // TODO: vector does not seem to be a good choice std::vector spells;