bool TargetsMultiple() const { return (mode & COUNT_MASK) == MULTIPLE; }
bool TargetsSingle() const { return (mode & COUNT_MASK) == SINGLE; }
+ void TargetAll() { mode = (mode & FACTION_MASK) | ALL; }
+ void TargetMultiple() { mode = (mode & FACTION_MASK) | MULTIPLE; }
+ void TargetSingle() { mode = (mode & FACTION_MASK) | SINGLE; }
+ void TargetAlly() { mode = ALLY | (mode & COUNT_MASK); }
+ void TargetEnemy() { mode = ENEMY | (mode & COUNT_MASK); }
+
void TargetAllEnemies() { mode = ENEMY | ALL; }
void TargetMultipleEnemies() { mode = ENEMY | MULTIPLE; }
void TargetSingleEnemy() { mode = ENEMY | SINGLE; }