]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
implemented "remove all" in equipment menu
[l2e.git] / src / common / Hero.h
index ca4651c947d66003583879145d4b44b4c304b9c7..70d21f202b7551dd11a45642a949871286036ba7 100644 (file)
@@ -47,6 +47,8 @@ public:
        const Stats &GetStats() const { return stats; }
 
        Uint8 Level() const { return level; }
+       int Experience() const { return experience; }
+       int NextLevel() const;
 
        Item *Weapon() { return weapon; }
        Item *Armor() { return armor; }
@@ -69,9 +71,18 @@ public:
        bool HasRing() const { return ring; }
        bool HasJewel() const { return jewel; }
 
+       void RemoveWeapon() { weapon = 0; }
+       void RemoveArmor() { armor = 0; }
+       void RemoveShield() { shield = 0; }
+       void RemoveHelmet() { helmet = 0; }
+       void RemoveRing() { ring = 0; }
+       void RemoveJewel() { jewel = 0; }
+
+       std::vector<const Spell *> &Spells() { return spells; }
        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 +114,10 @@ private:
        Stats stats;
 
        int level;
+       int experience;
+
+       int *levelLadder;
+       int numLevels;
 
        Item *weapon;
        Item *armor;