X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=ef4caf687a36af03385b4f4726444da2105a6b93;hb=e518ac67cf94e244df16078dcbc536e6b659e758;hp=f168506b21d59c5dfcd9870ff804b0832387c2e4;hpb=988ba6d1b4e18a4ae5d30a892224f76cee2355cc;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index f168506..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; @@ -42,6 +45,14 @@ public: 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 *); Uint16 MaxHealth() const; @@ -77,6 +88,9 @@ private: graphics::Animation *attackAnimation; graphics::Animation *spellAnimation; + int hunger; + int hungerFull; + int healthBoost; Stats statBoost; };