From ce552fd57890e7651916f61118abfd872e747d5b Mon Sep 17 00:00:00 2001 From: JimmyJames707 Date: Fri, 11 Apr 2014 21:50:58 +1000 Subject: [PATCH] Revert "query filter for each agent type with changes" This reverts commit b5f70b51a5e627f98a6f5d28aa5704afa9cdff6a. --- DetourCrowd/Include/DetourCrowd.h | 35 +++++++++------- DetourCrowd/Source/DetourCrowd.cpp | 65 +++++++++++++++++------------- 2 files changed, 59 insertions(+), 41 deletions(-) diff --git a/DetourCrowd/Include/DetourCrowd.h b/DetourCrowd/Include/DetourCrowd.h index 24c815b..c8cc392 100644 --- a/DetourCrowd/Include/DetourCrowd.h +++ b/DetourCrowd/Include/DetourCrowd.h @@ -45,9 +45,6 @@ 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 @@ -90,7 +87,7 @@ struct dtCrowdAgentParams /// [Limits: 0 <= value <= #DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS] unsigned char obstacleAvoidanceType; - /// The index of the query filter used by this agent. + // [F] unsigned char queryFilterType; /// User defined data attached to the agent. @@ -108,6 +105,9 @@ 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,6 +163,9 @@ struct dtCrowdAgent dtPathQueueRef targetPathqRef; ///< Path finder ref. bool targetReplan; ///< Flag indicating that the current path is being replanned. float targetReplanTime; ///