X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=d54394fdb7748ed3a56afc57e806565eb554b9ca;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=8d4791d20b2e4d20c2ed8c59dda9882115ce7bae;hpb=9666839d0ca6c794d28226a007870c82ef4ddb20;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index 8d4791d..d54394f 100644 --- a/src/common/Capsule.h +++ b/src/common/Capsule.h @@ -1,12 +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 "../math/Vector.h" #include @@ -31,6 +35,28 @@ public: const Spell *Attack2() const; const Spell *Attack3() const; + int NumClasses() const { return numClasses; } + int MaxClass() const { return maxClass; } + int CurrentClass() const { return curClass; } + + 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; Stats GetStats() const; @@ -65,6 +91,11 @@ private: graphics::Animation *attackAnimation; graphics::Animation *spellAnimation; + const common::Item *upgradeItem; + int upgradeClass; + int hunger; + int hungerFull; + int healthBoost; Stats statBoost; }; @@ -75,6 +106,9 @@ private: const char *name; const char *alignment; + math::Vector alignmentCursor; + const graphics::Sprite *alignmentSprite; + int maxHealth; Stats stats;