X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2FHero.h;fp=src%2Fbattle%2FHero.h;h=d5284ae3d9a9f78f5bf3661be526d73ad04d9c94;hb=c0068263474818f39e704eee12f753c0419f7708;hp=e200838487a177cef24e2ea0b200d1a35a99867f;hpb=e79073197647340d84eafc4b750b54e1cb4e3c8f;p=l2e.git diff --git a/src/battle/Hero.h b/src/battle/Hero.h index e200838..d5284ae 100644 --- a/src/battle/Hero.h +++ b/src/battle/Hero.h @@ -55,6 +55,13 @@ public: Uint16 Gut() const { return gut; } Uint16 MagicResistance() const { return magicResistance; } + common::Item *Weapon() { return weapon; } + common::Item *Armor() { return armor; } + common::Item *Shield() { return shield; } + common::Item *Helmet() { return helmet; } + common::Item *Ring() { return ring; } + common::Item *Jewel() { return jewel; } + const common::Item *Weapon() const { return weapon; } const common::Item *Armor() const { return armor; } const common::Item *Shield() const { return shield; } @@ -88,12 +95,12 @@ public: void SetMana(Uint16 m) { mana = m; } void SetIP(Uint8 i) { ip = i; } - void SetWeapon(const common::Item *i) { weapon = i; } - void SetArmor(const common::Item *i) { armor = i; } - void SetShield(const common::Item *i) { shield = i; } - void SetHelmet(const common::Item *i) { helmet = i; } - void SetRing(const common::Item *i) { ring = i; } - void SetJewel(const common::Item *i) { jewel = i; } + void SetWeapon(common::Item *i) { weapon = i; } + void SetArmor(common::Item *i) { armor = i; } + void SetShield(common::Item *i) { shield = i; } + void SetHelmet(common::Item *i) { helmet = i; } + void SetRing(common::Item *i) { ring = i; } + void SetJewel(common::Item *i) { jewel = i; } void AddSpell(const common::Spell *s) { spells.push_back(s); } @@ -105,12 +112,12 @@ private: const char *name; graphics::Sprite *sprite; - const common::Item *weapon; - const common::Item *armor; - const common::Item *shield; - const common::Item *helmet; - const common::Item *ring; - const common::Item *jewel; + common::Item *weapon; + common::Item *armor; + common::Item *shield; + common::Item *helmet; + common::Item *ring; + common::Item *jewel; graphics::Animation *meleeAnimation; graphics::Animation *attackAnimation;