4 * Created on: Aug 10, 2012
8 #ifndef COMMON_IKARI_H_
9 #define COMMON_IKARI_H_
11 #include "TargetingMode.h"
15 // TODO: looks like Ikari and Spell have _quite_ a lot in common…
22 const char *Name() const { return name; }
23 Uint8 Cost() const { return cost; }
25 TargetingMode &GetTargetingMode() { return targetingMode; }
26 const TargetingMode &GetTargetingMode() const { return targetingMode; }
28 bool IsMagical() const { return !isPhysical; }
29 bool IsPhysical() const { return isPhysical; }
31 // TODO: add missing ikari properties
35 void SetName(const char *n) { name = n; }
36 void SetCost(Uint8 c) { cost = c; }
37 void SetMagical() { isPhysical = false; }
38 void SetPhysical() { isPhysical = true; }
44 TargetingMode targetingMode;
52 #endif /* COMMON_IKARI_H_ */