]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
removed useless comments
[l2e.git] / src / common / Capsule.h
index 575a40cf78e67032d5504d6860627a891702edc1..5aa5f344fd6c09711f2c53f07cdc27507026e9f1 100644 (file)
@@ -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 <SDL.h>
 
@@ -23,11 +27,39 @@ public:
        Capsule();
 
        const char *Name() const { return name; }
+       void SetName(const char *n) { name = n; }
+       const char *ClassName() const;
        const char *Alignment() const { return alignment; }
+       const char *Tribe() const;
+       const Spell *Attack1() const;
+       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<int> &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();
+       Stats GetStats() const;
 
        Uint8 Level() const { return level; }
        int Experience() const { return experience; }
@@ -59,6 +91,11 @@ private:
                graphics::Animation *attackAnimation;
                graphics::Animation *spellAnimation;
 
+               const common::Item *upgradeItem;
+               int upgradeClass;
+               int hunger;
+               int hungerFull;
+
                int healthBoost;
                Stats statBoost;
        };
@@ -69,6 +106,9 @@ private:
        const char *name;
        const char *alignment;
 
+       math::Vector<int> alignmentCursor;
+       const graphics::Sprite *alignmentSprite;
+
        int maxHealth;
 
        Stats stats;
@@ -86,4 +126,4 @@ private:
 
 }
 
-#endif /* COMMON_CAPSULE_H_ */
+#endif