#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 <SDL.h>
int MaxClass() const { return maxClass; }
int CurrentClass() const { return curClass; }
- const geometry::Vector<int> &AlignmentOffset() const { return alignmentCursor; }
+ const math::Vector<int> &AlignmentOffset() const { return alignmentCursor; }
const graphics::Sprite *AlignmentSprite() const { return alignmentSprite; }
void UpgradeClass();
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;
graphics::Animation *attackAnimation;
graphics::Animation *spellAnimation;
+ const common::Item *upgradeItem;
+ int upgradeClass;
+ int hunger;
+ int hungerFull;
+
int healthBoost;
Stats statBoost;
};
const char *name;
const char *alignment;
- geometry::Vector<int> alignmentCursor;
+ math::Vector<int> alignmentCursor;
const graphics::Sprite *alignmentSprite;
int maxHealth;
}
-#endif /* COMMON_CAPSULE_H_ */
+#endif