public class CarSensor
extends cz.agents.alite.environment.eventbased.EventBasedSensor
Constructor and Description |
---|
CarSensor(AgentScoutEnvironment environment,
cz.agents.alite.common.entity.Entity relatedEntity) |
Modifier and Type | Method and Description |
---|---|
void |
deregisterWaypointReachedCallback(WaypointReachedCallback waypointReachedCallback) |
void |
handleEvent(cz.agents.alite.common.event.Event event) |
void |
registerMyPositionChangeCallback(PositionChangeCallback flyPositionChangeSensing) |
void |
registerWaypointReachedCallback(WaypointReachedCallback waypointReachedCallback) |
java.lang.Double |
senseDistanceToWaypoint() |
com.jme3.math.Vector3f |
senseHeading() |
Point |
senseMyPosition() |
float |
senseSpeed() |
public CarSensor(AgentScoutEnvironment environment, cz.agents.alite.common.entity.Entity relatedEntity)
public void registerWaypointReachedCallback(WaypointReachedCallback waypointReachedCallback)
public void deregisterWaypointReachedCallback(WaypointReachedCallback waypointReachedCallback)
public void registerMyPositionChangeCallback(PositionChangeCallback flyPositionChangeSensing)
public Point senseMyPosition()
public float senseSpeed()
public com.jme3.math.Vector3f senseHeading()
public java.lang.Double senseDistanceToWaypoint()
public void handleEvent(cz.agents.alite.common.event.Event event)
handleEvent
in interface cz.agents.alite.common.event.EventHandler
handleEvent
in class cz.agents.alite.environment.eventbased.EventBasedSensor