X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;fp=src%2Fcommon%2FCapsule.h;h=ef4caf687a36af03385b4f4726444da2105a6b93;hb=e518ac67cf94e244df16078dcbc536e6b659e758;hp=f68ba5301a52ef2b4b7b4503c185996ac13c2f46;hpb=5cbe0ba11d6fe180f49101547f05e7fe586d55c0;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index f68ba53..ef4caf6 100644 --- a/src/common/Capsule.h +++ b/src/common/Capsule.h @@ -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; };