Planeshift
DetourCrowd.h File Reference

Go to the source code of this file.

Classes

class  dtCrowd
 Provides local steering behaviors for a group of agents. More...
 
struct  dtCrowdAgent
 Represents an agent managed by a dtCrowd object. More...
 
struct  dtCrowdAgentAnimation
 
struct  dtCrowdAgentDebugInfo
 
struct  dtCrowdAgentParams
 Configuration parameters for a crowd agent. More...
 
struct  dtCrowdNeighbour
 Provides neighbor data for agents managed by the crowd. More...
 

Enumerations

enum  CrowdAgentState { DT_CROWDAGENT_STATE_INVALID, DT_CROWDAGENT_STATE_WALKING, DT_CROWDAGENT_STATE_OFFMESH }
 The type of navigation mesh polygon the agent is currently traversing. More...
 
enum  MoveRequestState {
  DT_CROWDAGENT_TARGET_NONE = 0, DT_CROWDAGENT_TARGET_FAILED, DT_CROWDAGENT_TARGET_VALID, DT_CROWDAGENT_TARGET_REQUESTING,
  DT_CROWDAGENT_TARGET_WAITING_FOR_QUEUE, DT_CROWDAGENT_TARGET_WAITING_FOR_PATH, DT_CROWDAGENT_TARGET_VELOCITY
}
 
enum  UpdateFlags {
  DT_CROWD_ANTICIPATE_TURNS = 1, DT_CROWD_OBSTACLE_AVOIDANCE = 2, DT_CROWD_SEPARATION = 4, DT_CROWD_OPTIMIZE_VIS = 8,
  DT_CROWD_OPTIMIZE_TOPO = 16
}
 Crowd agent update flags. More...
 

Functions

dtCrowddtAllocCrowd ()
 Allocates a crowd object using the Detour allocator. More...
 
void dtFreeCrowd (dtCrowd *ptr)
 Frees the specified crowd object using the Detour allocator. More...
 

Variables

static const int DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS = 8
 The maximum number of crowd avoidance configurations supported by the crowd manager. More...
 
static const int DT_CROWDAGENT_MAX_CORNERS = 4
 The maximum number of corners a crowd agent will look ahead in the path. This value is used for sizing the crowd agent corner buffers. Due to the behavior of the crowd manager, the actual number of useful corners will be one less than this number. More...
 
static const int DT_CROWDAGENT_MAX_NEIGHBOURS = 6
 The maximum number of neighbors that a crowd agent can take into account for steering decisions. More...
 

Enumeration Type Documentation

Enumerator
DT_CROWDAGENT_TARGET_NONE 
DT_CROWDAGENT_TARGET_FAILED 
DT_CROWDAGENT_TARGET_VALID 
DT_CROWDAGENT_TARGET_REQUESTING 
DT_CROWDAGENT_TARGET_WAITING_FOR_QUEUE 
DT_CROWDAGENT_TARGET_WAITING_FOR_PATH 
DT_CROWDAGENT_TARGET_VELOCITY 

Definition at line 94 of file DetourCrowd.h.