X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=5aa5f344fd6c09711f2c53f07cdc27507026e9f1;hb=f6548c2aabfb371bd81382d7800e6e2cdb826e06;hp=c70d07fdf28cb41368160f3dfb314208dcf2e68a;hpb=6dff93b1a6e9b727dbe26747456f4b23efca86da;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index c70d07f..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,10 +39,23 @@ 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(); + 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; }; @@ -85,7 +106,7 @@ private: const char *name; const char *alignment; - geometry::Vector alignmentCursor; + math::Vector alignmentCursor; const graphics::Sprite *alignmentSprite; int maxHealth; @@ -105,4 +126,4 @@ private: } -#endif /* COMMON_CAPSULE_H_ */ +#endif