4 * Created on: Aug 10, 2012
8 #ifndef COMMON_SPELL_H_
9 #define COMMON_SPELL_H_
11 #include "TargetingMode.h"
18 static const int TYPE_ID = 304;
24 const char *Name() const { return name; }
25 Uint16 Value() const { return value; }
26 Uint8 Cost() const { return cost; }
28 bool CanUseOnStatusScreen() const { return status; }
29 bool CanUseInBattle() const { return battle; }
31 TargetingMode &GetTargetingMode() { return targetingMode; }
32 const TargetingMode &GetTargetingMode() const { return targetingMode; }
34 int HeroMask() const { return heroMask; }
36 static bool Less(const Spell *, const Spell *);
40 void SetName(const char *n) { name = n; }
41 void SetCost(Uint8 c) { cost = c; }
42 void SetUsableInBattle() { battle = true; }
44 static void CreateTypeDescription();
45 static void Construct(void *);
53 TargetingMode targetingMode;
63 #endif /* COMMON_SPELL_H_ */