]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
added upgrade items for capsule's final class
[l2e.git] / src / common / Capsule.h
index c70d07fdf28cb41368160f3dfb314208dcf2e68a..bf99cfa1ad376660c322c97640515ec9b71f4dce 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef COMMON_CAPSULE_H_
 #define COMMON_CAPSULE_H_
 
+namespace common {
+       class Item;
+}
 namespace graphics {
        class Animation;
        class Sprite;
@@ -40,6 +43,19 @@ public:
        const graphics::Sprite *AlignmentSprite() const { return alignmentSprite; }
 
        void UpgradeClass();
+       void NextClass();
+       void PreviousClass();
+       int ClassIndex() const { return curClass; }
+       void SetClass(int index);
+
+       int HungerEmpty() const;
+       int HungerTotal() const;
+       int HungerFull() const;
+       bool IsHungry() const;
+       void Feed(const common::Item *);
+
+       const common::Item *UpgradeItem() const;
+       void UpgradeSpecial();
 
        Uint16 MaxHealth() const;
 
@@ -75,6 +91,11 @@ private:
                graphics::Animation *attackAnimation;
                graphics::Animation *spellAnimation;
 
+               const common::Item *upgradeItem;
+               int upgradeClass;
+               int hunger;
+               int hungerFull;
+
                int healthBoost;
                Stats statBoost;
        };