X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=5aa5f344fd6c09711f2c53f07cdc27507026e9f1;hb=0911d263c10cca314305799d5b839ee9653cac0b;hp=f68ba5301a52ef2b4b7b4503c185996ac13c2f46;hpb=5cbe0ba11d6fe180f49101547f05e7fe586d55c0;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index f68ba53..5aa5f34 100644 --- a/src/common/Capsule.h +++ b/src/common/Capsule.h @@ -1,13 +1,16 @@ #ifndef COMMON_CAPSULE_H_ #define COMMON_CAPSULE_H_ +namespace common { + class Item; +} namespace graphics { class Animation; class Sprite; } #include "../common/Stats.h" -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -36,7 +39,7 @@ public: int MaxClass() const { return maxClass; } int CurrentClass() const { return curClass; } - const geometry::Vector &AlignmentOffset() const { return alignmentCursor; } + const math::Vector &AlignmentOffset() const { return alignmentCursor; } const graphics::Sprite *AlignmentSprite() const { return alignmentSprite; } void UpgradeClass(); @@ -45,6 +48,15 @@ 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 *); + + const common::Item *UpgradeItem() const; + void UpgradeSpecial(); + Uint16 MaxHealth() const; Stats GetStats() const; @@ -79,6 +91,11 @@ private: graphics::Animation *attackAnimation; graphics::Animation *spellAnimation; + const common::Item *upgradeItem; + int upgradeClass; + int hunger; + int hungerFull; + int healthBoost; Stats statBoost; }; @@ -89,7 +106,7 @@ private: const char *name; const char *alignment; - geometry::Vector alignmentCursor; + math::Vector alignmentCursor; const graphics::Sprite *alignmentSprite; int maxHealth; @@ -109,4 +126,4 @@ private: } -#endif /* COMMON_CAPSULE_H_ */ +#endif