X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=6c03eee0ae4cc7f06adb9b251979599b342354da;hb=ec0841bce8db9b1419dfbbb03ceff9c8502ab755;hp=caa8f4dba2a5e71c1074c0be28021c6f1a3d3aea;hpb=d2d8ff1fd5f55e8b43d48ae5e75c216492e2f032;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index caa8f4d..6c03eee 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -19,6 +19,9 @@ namespace common { class Hero { +public: + static const int TYPE_ID = 301; + public: Hero(); ~Hero() { } @@ -44,6 +47,7 @@ public: const Stats &GetStats() const { return stats; } Uint8 Level() const { return level; } + int Experience() const { return experience; } Item *Weapon() { return weapon; } Item *Armor() { return armor; } @@ -69,6 +73,7 @@ public: const std::vector &Spells() const { return spells; } graphics::Sprite *BattleSprite() { return battleSprite; } + const graphics::Sprite *BattleSprite() const { return battleSprite; } graphics::Animation *MeleeAnimation() { return meleeAnimation; } graphics::Animation *AttackAnimation() { return attackAnimation; } graphics::Animation *SpellAnimation() { return spellAnimation; } @@ -100,6 +105,7 @@ private: Stats stats; int level; + int experience; Item *weapon; Item *armor;