1 #ifndef COMMON_SPELL_H_
2 #define COMMON_SPELL_H_
4 #include "TargetingMode.h"
11 static const int TYPE_ID = 304;
17 const char *Name() const { return name; }
18 Uint16 Value() const { return value; }
19 Uint8 Cost() const { return cost; }
21 bool CanUseOnStatusScreen() const { return status; }
22 bool CanUseInBattle() const { return battle; }
24 TargetingMode &GetTargetingMode() { return targetingMode; }
25 const TargetingMode &GetTargetingMode() const { return targetingMode; }
27 int HeroMask() const { return heroMask; }
29 static bool Less(const Spell *, const Spell *);
33 void SetName(const char *n) { name = n; }
34 void SetCost(Uint8 c) { cost = c; }
35 void SetUsableInBattle() { battle = true; }
37 static void CreateTypeDescription();
38 static void Construct(void *);
46 TargetingMode targetingMode;