4 * Created on: Aug 10, 2012
8 #ifndef COMMON_TARGETINGMODE_H_
9 #define COMMON_TARGETINGMODE_H_
18 static const int TYPE_ID = 306;
21 TargetingMode() : mode(0), ally(true) { }
24 bool TargetsEnemy() const { return !ally; }
25 bool TargetsAlly() const { return ally; }
26 bool TargetsAll() const { return mode == ALL; }
27 bool TargetsMultiple() const { return mode == MULTIPLE; }
28 bool TargetsSingle() const { return mode == SINGLE; }
30 void TargetAll() { mode = ALL; }
31 void TargetMultiple() { mode = MULTIPLE; }
32 void TargetSingle() { mode = SINGLE; }
33 void TargetAlly() { ally = true; }
34 void TargetEnemy() { ally = false; }
36 static void CreateTypeDescription();
37 static void Construct(void *);
52 #endif /* COMMON_TARGETINGMODE_H_ */