X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FTargetingMode.h;fp=src%2Fcommon%2FTargetingMode.h;h=90414485599168a349a1cf4572b4e1506f539621;hb=a137604bbb91ef06baf01eb9668a92a0ae1de8b1;hp=5376d1344b1d73a9385f9655f2e0e6b8f341b4ce;hpb=322be5954c0f8df6a9e3aaeb2456783a814d52c3;p=l2e.git diff --git a/src/common/TargetingMode.h b/src/common/TargetingMode.h index 5376d13..9041448 100644 --- a/src/common/TargetingMode.h +++ b/src/common/TargetingMode.h @@ -24,6 +24,12 @@ public: 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; }