1 #ifndef COMMON_CAPSULE_H_
2 #define COMMON_CAPSULE_H_
9 #include "../common/Stats.h"
20 static const int TYPE_ID = 307;
25 const char *Name() const { return name; }
26 const char *Alignment() const { return alignment; }
28 Uint16 MaxHealth() const;
32 Uint8 Level() const { return level; }
33 int Experience() const { return experience; }
34 int NextLevel() const;
36 graphics::Sprite *BattleSprite();
37 const graphics::Sprite *BattleSprite() const;
38 graphics::Animation *MeleeAnimation();
39 graphics::Animation *AttackAnimation();
40 graphics::Animation *SpellAnimation();
42 static void CreateTypeDescription();
43 static void Construct(void *);
47 static const int TYPE_ID = 308;
51 static void CreateTypeDescription();
52 static void Construct(void *);
57 graphics::Sprite *battleSprite;
58 graphics::Animation *meleeAnimation;
59 graphics::Animation *attackAnimation;
60 graphics::Animation *spellAnimation;
67 const Class &GetClass() const;
70 const char *alignment;
83 int numClasses, curClass, maxClass;
89 #endif /* COMMON_CAPSULE_H_ */