4 * Created on: Aug 10, 2012
8 #ifndef COMMON_SPELL_H_
9 #define COMMON_SPELL_H_
11 #include "HeroGroup.h"
12 #include "TargetingMode.h"
19 static const int TYPE_ID = 304;
25 const char *Name() const { return name; }
26 Uint16 Value() const { return value; }
27 Uint8 Cost() const { return cost; }
29 bool CanUseOnStatusScreen() const { return status; }
30 bool CanUseInBattle() const { return battle; }
32 TargetingMode &GetTargetingMode() { return targetingMode; }
33 const TargetingMode &GetTargetingMode() const { return targetingMode; }
35 HeroGroup &UsableBy() { return usableBy; }
36 const HeroGroup &UsableBy() const { return usableBy; }
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_ */