1 #ifndef COMMON_TARGETINGMODE_H_
2 #define COMMON_TARGETINGMODE_H_
11 static const int TYPE_ID = 306;
14 TargetingMode() : mode(0), ally(true) { }
17 bool TargetsEnemy() const { return !ally; }
18 bool TargetsAlly() const { return ally; }
19 bool TargetsAll() const { return mode == ALL; }
20 bool TargetsMultiple() const { return mode == MULTIPLE; }
21 bool TargetsSingle() const { return mode == SINGLE; }
23 void TargetAll() { mode = ALL; }
24 void TargetMultiple() { mode = MULTIPLE; }
25 void TargetSingle() { mode = SINGLE; }
26 void TargetAlly() { ally = true; }
27 void TargetEnemy() { ally = false; }
29 static void CreateTypeDescription();
30 static void Construct(void *);
45 #endif /* COMMON_TARGETINGMODE_H_ */