atavism.agis.objects
Class DetourActor
java.lang.Object
atavism.agis.objects.DetourActor
- All Implemented Interfaces:
- MessageCallback
public class DetourActor
- extends java.lang.Object
- implements MessageCallback
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mode
protected java.lang.String mode
roamingBehavior
protected boolean roamingBehavior
DetourActor
public DetourActor(OID oid,
ObjectStub obj)
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)