public interface IMobileEntity extends ICollisionEntity
Modifier and Type | Method and Description |
---|---|
int |
getAcceleration()
Gets a value that defines how long it takes the entity to reach the full
velocity (in ms).
|
int |
getDeceleration()
Gets a value that defines how long it takes the entity to stop when slowing down from movements (in ms).
|
java.awt.geom.Point2D |
getMoveDestination()
Gets the move destination.
|
IMovementController |
getMovementController()
Gets the movement controller.
|
float |
getTickVelocity()
Gets the entity's velocity in PIXELS per tick.
|
Attribute<java.lang.Float> |
getVelocity()
Gets the entity's velocity in PIXELS per Second.
|
void |
setAcceleration(int acceleration)
Sets the acceleration for this entity.
|
void |
setDeceleration(int deceleration)
Sets the deceleration for this entity.
|
void |
setMoveDestination(java.awt.geom.Point2D dest)
Sets the point where the entity will be moved to.
|
void |
setTurnOnMove(boolean turn)
Sets the turn on move parameter for this entity.
|
void |
setVelocity(float velocity)
Sets the base value on the velocity attribute of this instance.
|
boolean |
turnOnMove()
Gets the turn on move parameter for this entity.
|
canCollideWith, getCollisionBox, getCollisionBox, getCollisionBoxAlign, getCollisionBoxCenter, getCollisionBoxHeight, getCollisionBoxValign, getCollisionBoxWidth, getCollisionType, hasCollision, setCollision, setCollisionBoxAlign, setCollisionBoxHeight, setCollisionBoxValign, setCollisionBoxWidth, setCollisionType
actions, addController, addListener, addMessageListener, addMessageListener, addTag, addTransformListener, attachControllers, detachControllers, getAngle, getAnimationController, getBehaviorController, getBoundingBox, getCenter, getController, getEnvironment, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, isLoaded, loaded, perform, register, removed, removeListener, removeMessageListener, removeTag, removeTransformListener, renderWithLayer, sendMessage, setAngle, setController, setHeight, setLocation, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize, setWidth, setX, setY
int getAcceleration()
int getDeceleration()
java.awt.geom.Point2D getMoveDestination()
Attribute<java.lang.Float> getVelocity()
float getTickVelocity()
IMovementController getMovementController()
void setAcceleration(int acceleration)
acceleration
- the new accelerationvoid setDeceleration(int deceleration)
deceleration
- the new decelerationvoid setMoveDestination(java.awt.geom.Point2D dest)
dest
- the destination point of the movement.void setTurnOnMove(boolean turn)
turn
- the new turn on move parameter.void setVelocity(float velocity)
velocity
- The velocity to be set.getVelocity()
boolean turnOnMove()