public class DetourActor extends java.lang.Object implements MessageCallback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mode |
protected boolean |
roamingBehavior |
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
DetourActor(OID oid,
ObjectStub obj) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Sets up the subscription to receive messages.
|
void |
addToNavMeshManager(InstanceNavMeshManager navMeshManager,
int id) |
protected void |
cancelPathInterpolator(OID oid) |
boolean |
checkVisibility(Point pos) |
void |
deactivate()
Removes the subscription to messages.
|
int |
getAgentId() |
OID |
getOid() |
org.recast4j.detour.crowd.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() |
public DetourActor(OID oid, ObjectStub obj)
public void activate()
public void deactivate()
public void handleMessage(Message msg, int flags)
MessageCallback
handleMessage
in interface MessageCallback
msg
- Message sent from other agent.flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.public boolean checkVisibility(Point pos)
public void updateDirLoc(AOVector dir, Point pos)
dir
- pos
- protected long setupPathInterpolator(Point myLoc, Point dest, float speed, java.util.ArrayList<AOVector> points)
public void updateInterpolation()
protected void cancelPathInterpolator(OID oid)
public org.recast4j.detour.crowd.CrowdAgentParams getParams()
public void addToNavMeshManager(InstanceNavMeshManager navMeshManager, int id)
public OID getOid()
public int getAgentId()
public void setAgentId(int id)