X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=aa12b2559cdfe69aa1221847aded744bfbd8549e;hb=acc322b16b5f31cfbc350d4fccb457c7730287fd;hp=623e2c4965fabbaaadc45efb3dbd3e47a7dd6149;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index 623e2c4..aa12b25 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -1,9 +1,16 @@ #ifndef COMMON_HERO_H_ #define COMMON_HERO_H_ -#include "fwd.h" +namespace common { + class Item; + class Spell; +} +namespace graphics { + class Animation; + class Sprite; +} + #include "Stats.h" -#include "../graphics/fwd.h" #include "../map/Entity.h" #include @@ -76,8 +83,9 @@ public: static void CreateTypeDescription(); static void Construct(void *); -// temporary setters public: + void SetMaxHealth(int h) { maxHealth = h; } + void SetHealth(int h) { health = h; } void AddSpell(Spell *s) { spells.push_back(s); } private: @@ -113,4 +121,4 @@ private: } -#endif /* COMMON_HERO_H_ */ +#endif