- int RelativeIP(int max) const { return ip * max / 256; }
-
- Uint16 Attack() const { return attack; }
- Uint16 Defense() const { return defense; }
- Uint16 Agility() const { return agility; }
- Uint16 Intelligence() const { return intelligence; }
- Uint16 Gut() const { return gut; }
- Uint16 MagicResistance() const { return magicResistance; }
+ int RelativeIP(int max) const { return IP() * max / MaxIP(); }
+
+ Stats &GetStats() { return stats; }
+ const Stats &GetStats() const { return stats; }
+
+ 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; }
+ const common::Item *Helmet() const { return helmet; }
+ const common::Item *Ring() const { return ring; }
+ const common::Item *Jewel() const { return jewel; }
+
+ bool HasWeapon() const { return weapon; }
+ bool HasArmor() const { return armor; }
+ bool HasShield() const { return shield; }
+ bool HasHelmet() const { return helmet; }
+ bool HasRing() const { return ring; }
+ bool HasJewel() const { return jewel; }
+
+ graphics::Animation *MeleeAnimation() { return meleeAnimation; }
+ const graphics::Animation *MeleeAnimation() const { return meleeAnimation; }
+ graphics::Animation *AttackAnimation() { return attackAnimation; }
+ const graphics::Animation *AttackAnimation() const { return attackAnimation; }
+ graphics::Animation *SpellAnimation() { return spellAnimation; }
+ const graphics::Animation *SpellAnimation() const { return spellAnimation; }