29 explicit IsInGroup(
const std::string& parameters) :
31 if (_parameters.empty()) {
34 _groupId = std::stoi(_parameters);
42 const GroupMgr& mgr = entity->getZone()->getGroupMgr();
A condition can be placed on a TreeNode to decide which node is going to get executed. In general they are stateless. If they are not, it should explicitly get noted.
Definition: ICondition.h:124
bool isInGroup(GroupId id, const AIPtr &ai) const
Definition: GroupMgr.h:295
Maintains the groups a AI can be in.
Definition: GroupMgr.h:27
Checks whether the AI is in any or in a particular group.
Definition: IsInGroup.h:22
bool evaluate(const AIPtr &entity) override
Checks whether the condition evaluates to true for the given entity.
Definition: IsInGroup.h:41
bool isInAnyGroup(const AIPtr &ai) const
Definition: GroupMgr.h:290
#define CONDITION_FACTORY(ConditionName)
A condition factory macro to ease and unify the registration at AIRegistry.
Definition: ICondition.h:55