bool HasRing() const { return ring; }
bool HasJewel() const { return jewel; }
+ int AttackFrames() const { return attackFrames; }
+ int AttackFrameTime() const { return attackFrameTime; }
+ int SpellFrames() const { return spellFrames; }
+ int SpellFrameTime() const { return spellFrameTime; }
+
// temporary setters until loader is implemented
public:
void SetName(const char *n) { name = n; }
void AddSpell(const common::Spell *s) { spells.push_back(s); }
+ void SetAttackFrames(int num, int time) { attackFrames = num; attackFrameTime = time; }
+ void SetSpellFrames(int num, int time) { spellFrames = num; spellFrameTime = time; }
+
private:
const char *name;
graphics::Sprite *sprite;
// TODO: vector does not seem to be a good choice
std::vector<const common::Spell *> spells;
- // TODO: equipment list
+
+ int attackFrames;
+ int attackFrameTime;
+ int spellFrames;
+ int spellFrameTime;
Uint16 maxHealth, health;
Uint16 maxMana, mana;