]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
made HeroGroup data-only
[l2e.git] / src / common / Hero.h
index 6c03eee0ae4cc7f06adb9b251979599b342354da..dcbc7827547604a8f3a34a4541a51361e251a429 100644 (file)
@@ -48,6 +48,10 @@ public:
 
        Uint8 Level() const { return level; }
        int Experience() const { return experience; }
+       int NextLevel() const;
+
+       bool CanEquip(const Item &) const;
+       bool CanInvoke(const Spell &) const;
 
        Item *Weapon() { return weapon; }
        Item *Armor() { return armor; }
@@ -70,6 +74,14 @@ 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; }
@@ -107,6 +119,11 @@ private:
        int level;
        int experience;
 
+       int *levelLadder;
+       int numLevels;
+
+       int useMask;
+
        Item *weapon;
        Item *armor;
        Item *shield;