X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=dcbc7827547604a8f3a34a4541a51361e251a429;hb=5795ffa948c6e39a624c4fc7773a99afb87579e1;hp=77269c6b25572415a43c32da5e83cbd15c001f47;hpb=f552d26f537af9fa48255bd71cdc1a0a1b860bac;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index 77269c6..dcbc782 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -50,6 +50,9 @@ public: 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; } Item *Shield() { return shield; } @@ -71,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 &Spells() { return spells; } const std::vector &Spells() const { return spells; } graphics::Sprite *BattleSprite() { return battleSprite; } @@ -111,6 +122,8 @@ private: int *levelLadder; int numLevels; + int useMask; + Item *weapon; Item *armor; Item *shield;