Atavism Version 2018.1AGIS API

atavism.server.pathing.crowd
Class Crowd

java.lang.Object
  extended by atavism.server.pathing.crowd.Crowd

public class Crowd
extends java.lang.Object


Field Summary
static int CrowdMaxObstAvoidanceParams
           
static int MaxCommonNodes
           
static int MaxItersPerUpdate
           
static int MaxPathQueueNodes
           
 
Constructor Summary
Crowd()
           
 
Method Summary
 int AddAgent(float[] pos, CrowdAgentParams param)
           
static int AddNeighbor(int idx, float dist, CrowdNeighbour[] neis, int nneis, int maxNeis)
           
static int AddToOptQueue(CrowdAgent newag, CrowdAgent[] agents, int nagents, int maxAgents)
           
static int AddToPlanQueue(CrowdAgent newag, CrowdAgent[] agents, int nagents, int maxAgents)
           
 int AgentCount()
           
 int GetActiveAgents(CrowdAgent[] agents, int maxAgents)
           
 CrowdAgent GetAgent(int idx)
           
 QueryFilter getFilter()
           
static int GetNeighbors(float[] pos, float height, float range, CrowdAgent skip, CrowdNeighbour[] result, int maxResult, CrowdAgent[] agents, int nagents, ProximityGrid grid)
           
 ObstacleAvoidanceParams GetObstacleAvoidanceParams(int idx)
           
 ProximityGrid Grid()
           
 java.lang.Boolean Init(int maxAgents, float maxAgentRadius, NavMesh nav)
           
 NavMeshQuery NavMeshQuery()
           
 float[] QueryExtents()
           
 void RemoveAgent(int idx)
           
 java.lang.Boolean RequestMoveTarget(int idx, long refId, float[] pos)
           
 java.lang.Boolean RequestMoveVelocity(int idx, float[] vel)
           
 java.lang.Boolean ResetMoveTarget(int idx)
           
 void setFilter(QueryFilter value)
           
 void SetObstacleAvoidanceParams(int idx, ObstacleAvoidanceParams param)
           
 float Tween(float t, float t0, float t1)
           
 CrowdAgentDebugInfo Update(float dt, CrowdAgentDebugInfo debug)
           
 void UpdateAgentParameters(int idx, CrowdAgentParams param)
           
 int VelocitySample()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CrowdMaxObstAvoidanceParams

public static int CrowdMaxObstAvoidanceParams

MaxPathQueueNodes

public static int MaxPathQueueNodes

MaxCommonNodes

public static int MaxCommonNodes

MaxItersPerUpdate

public static int MaxItersPerUpdate
Constructor Detail

Crowd

public Crowd()
Method Detail

Init

public java.lang.Boolean Init(int maxAgents,
                              float maxAgentRadius,
                              NavMesh nav)

SetObstacleAvoidanceParams

public void SetObstacleAvoidanceParams(int idx,
                                       ObstacleAvoidanceParams param)

GetObstacleAvoidanceParams

public ObstacleAvoidanceParams GetObstacleAvoidanceParams(int idx)

GetAgent

public CrowdAgent GetAgent(int idx)

AgentCount

public int AgentCount()

AddAgent

public int AddAgent(float[] pos,
                    CrowdAgentParams param)

UpdateAgentParameters

public void UpdateAgentParameters(int idx,
                                  CrowdAgentParams param)

RemoveAgent

public void RemoveAgent(int idx)

RequestMoveTarget

public java.lang.Boolean RequestMoveTarget(int idx,
                                           long refId,
                                           float[] pos)

RequestMoveVelocity

public java.lang.Boolean RequestMoveVelocity(int idx,
                                             float[] vel)

ResetMoveTarget

public java.lang.Boolean ResetMoveTarget(int idx)

GetActiveAgents

public int GetActiveAgents(CrowdAgent[] agents,
                           int maxAgents)

Update

public CrowdAgentDebugInfo Update(float dt,
                                  CrowdAgentDebugInfo debug)

getFilter

public QueryFilter getFilter()

setFilter

public void setFilter(QueryFilter value)

QueryExtents

public float[] QueryExtents()

VelocitySample

public int VelocitySample()

Grid

public ProximityGrid Grid()

NavMeshQuery

public NavMeshQuery NavMeshQuery()

AddNeighbor

public static int AddNeighbor(int idx,
                              float dist,
                              CrowdNeighbour[] neis,
                              int nneis,
                              int maxNeis)

GetNeighbors

public static int GetNeighbors(float[] pos,
                               float height,
                               float range,
                               CrowdAgent skip,
                               CrowdNeighbour[] result,
                               int maxResult,
                               CrowdAgent[] agents,
                               int nagents,
                               ProximityGrid grid)

AddToOptQueue

public static int AddToOptQueue(CrowdAgent newag,
                                CrowdAgent[] agents,
                                int nagents,
                                int maxAgents)

AddToPlanQueue

public static int AddToPlanQueue(CrowdAgent newag,
                                 CrowdAgent[] agents,
                                 int nagents,
                                 int maxAgents)

Tween

public float Tween(float t,
                   float t0,
                   float t1)


Copyright © 2018 Dragonsan Studios Sp. z o.o.