Atavism Version 2018.1AGIS API

atavism.agis.objects
Class DetourActor

java.lang.Object
  extended by atavism.agis.objects.DetourActor
All Implemented Interfaces:
MessageCallback

public class DetourActor
extends java.lang.Object
implements MessageCallback


Field Summary
protected  java.lang.String mode
           
protected  boolean roamingBehavior
           
 
Fields inherited from interface atavism.msgsys.MessageCallback
NO_FLAGS, RESPONSE_EXPECTED
 
Constructor Summary
DetourActor(OID oid, ObjectStub obj)
           
 
Method Summary
 void activate()
          Sets up the subscription to receive messages.
 void addToNavMeshManager(InstanceNavMeshManager navMeshManager, int id)
           
protected  void cancelPathInterpolator(OID oid)
           
 void deactivate()
          Removes the subscription to messages.
 int getAgentId()
           
 OID getOid()
           
 CrowdAgentParams getParams()
           
 void handleMessage(Message msg, int flags)
          Handle message.
 void setAgentId(int id)
           
protected  long setupPathInterpolator(Point myLoc, Point dest, float speed, java.util.ArrayList<AOVector> points)
           
 void updateDirLoc(AOVector dir, Point pos)
          Called each update of the InstanceNavMesh.
 void updateInterpolation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

protected java.lang.String mode

roamingBehavior

protected boolean roamingBehavior
Constructor Detail

DetourActor

public DetourActor(OID oid,
                   ObjectStub obj)
Method Detail

activate

public void activate()
Sets up the subscription to receive messages.


deactivate

public void deactivate()
Removes the subscription to messages.


handleMessage

public void handleMessage(Message msg,
                          int flags)
Description copied from interface: MessageCallback
Handle message.

Specified by:
handleMessage in interface MessageCallback
Parameters:
msg - Message sent from other agent.
flags - Bitwise OR of MessageCallback.NO_FLAGS, MessageCallback.RESPONSE_EXPECTED.

updateDirLoc

public void updateDirLoc(AOVector dir,
                         Point pos)
Called each update of the InstanceNavMesh. Checks if the location or direction has changed much and if so sends an update to the clients.

Parameters:
dir -
pos -

setupPathInterpolator

protected long setupPathInterpolator(Point myLoc,
                                     Point dest,
                                     float speed,
                                     java.util.ArrayList<AOVector> points)

updateInterpolation

public void updateInterpolation()

cancelPathInterpolator

protected void cancelPathInterpolator(OID oid)

getParams

public CrowdAgentParams getParams()

addToNavMeshManager

public void addToNavMeshManager(InstanceNavMeshManager navMeshManager,
                                int id)

getOid

public OID getOid()

getAgentId

public int getAgentId()

setAgentId

public void setAgentId(int id)


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