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