From 907b67bd184d056844ab2354d2004d15a956276c Mon Sep 17 00:00:00 2001 From: JimmyJames707 Date: Fri, 11 Apr 2014 22:17:21 +1000 Subject: [PATCH] query filter for each agent type with changes --- DetourCrowd/Include/DetourCrowd.h | 35 +++++++--------- DetourCrowd/Source/DetourCrowd.cpp | 65 +++++++++++++----------------- 2 files changed, 41 insertions(+), 59 deletions(-) diff --git a/DetourCrowd/Include/DetourCrowd.h b/DetourCrowd/Include/DetourCrowd.h index c8cc392..24c815b 100644 --- a/DetourCrowd/Include/DetourCrowd.h +++ b/DetourCrowd/Include/DetourCrowd.h @@ -45,6 +45,9 @@ static const int DT_CROWDAGENT_MAX_CORNERS = 4; /// dtCrowdAgentParams::obstacleAvoidanceType static const int DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS = 8; +/// The maximum number of query filter types +static const int DT_CROWD_MAX_QUERY_FILTER_TYPE = 16; + /// Provides neighbor data for agents managed by the crowd. /// @ingroup crowd /// @see dtCrowdAgent::neis, dtCrowd @@ -87,7 +90,7 @@ struct dtCrowdAgentParams /// [Limits: 0 <= value <= #DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS] unsigned char obstacleAvoidanceType; - // [F] + /// The index of the query filter used by this agent. unsigned char queryFilterType; /// User defined data attached to the agent. @@ -105,9 +108,6 @@ enum MoveRequestState DT_CROWDAGENT_TARGET_VELOCITY, }; -// [F] -static const int DT_CROWD_MAX_QUERY_FILTER_TYPE = 16; - /// Represents an agent managed by a #dtCrowd object. /// @ingroup crowd struct dtCrowdAgent @@ -163,9 +163,6 @@ struct dtCrowdAgent dtPathQueueRef targetPathqRef; ///< Path finder ref. bool targetReplan; ///< Flag indicating that the current path is being replanned. float targetReplanTime; ///