]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
added experience as a common hero property
[l2e.git] / src / common / Hero.h
index ca4651c947d66003583879145d4b44b4c304b9c7..6c03eee0ae4cc7f06adb9b251979599b342354da 100644 (file)
@@ -47,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; }
@@ -72,6 +73,7 @@ public:
        const std::vector<const Spell *> &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; }
@@ -103,6 +105,7 @@ private:
        Stats stats;
 
        int level;
+       int experience;
 
        Item *weapon;
        Item *armor;