]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
rough implementation of capsule feeding
[l2e.git] / src / common / Capsule.h
index f68ba5301a52ef2b4b7b4503c185996ac13c2f46..ef4caf687a36af03385b4f4726444da2105a6b93 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef COMMON_CAPSULE_H_
 #define COMMON_CAPSULE_H_
 
+namespace common {
+       class Item;
+}
 namespace graphics {
        class Animation;
        class Sprite;
@@ -45,6 +48,12 @@ public:
        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 *);
+
        Uint16 MaxHealth() const;
 
        Stats GetStats() const;
@@ -79,6 +88,9 @@ private:
                graphics::Animation *attackAnimation;
                graphics::Animation *spellAnimation;
 
+               int hunger;
+               int hungerFull;
+
                int healthBoost;
                Stats statBoost;
        };