Class Agent Extends CooperativeContext.IAgent

Public

Public Methods

Agent (context, initialNode, id)
Public
ApproximateDistanceToTarget (node)
Public
DiscardRemainingPath ()
Public
GetNewPath (target)
Public
GetNode (tick)
Public
MeasureDistance (startTime, endTime)
Public
OnPostTick ()
Public
SamplePath (time)

Determine where this agent should be at the specified tick.

Public
SampleSmoothPath (startTime, endTime)

Determine where this agent should be at the specified tick.

Public

Public Variables

component
Public
enabled
Public
endOfPathTime
Public
path
Public Readonly
threadsafePath
Public Readonly
wantsToRecalculatePath
Public
wantToOptimizePath
Public

Private/Protected Members

cooperativeContext
Private
getLatestPathData
Private
GetLatestPathData ()

Retrieves the latest info on where the path should start.

Private
lastPath
Private
mEnabled
Private
moved
Package
node
Package
onImmediatePathComplete
Private
OnImmediatePathComplete (_path)

Called right after the path has been calculated.

Private
SamplePath (path, relativeTick, defaultValue)

Sample where the specified path expects an agent to be at the specified tick.

Private Static
SamplePath (path, relativeTick, defaultValue, secondNode)

Sample where the specified path expects an agent to be at the specified tick.

Private Static