From: Daniel Karbach Date: Fri, 31 Aug 2012 21:35:02 +0000 (+0200) Subject: made single properties of TargetingMode configurable X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=a137604bbb91ef06baf01eb9668a92a0ae1de8b1;p=l2e.git made single properties of TargetingMode configurable --- 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; }