public class MousePathController extends MovementController<IMobileEntity>
Constructor and Description |
---|
MousePathController(EntityNavigator navigator,
IMobileEntity entity) |
Modifier and Type | Method and Description |
---|---|
EntityNavigator |
getNavigator() |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
update()
This method is called by the game loop on all objects that need to update
their attributes.
|
apply, attach, decelerateVelocityX, decelerateVelocityY, detach, getActiveForces, getDx, getDy, getEntity, getForce, getStopThreshold, getVelocityX, getVelocityY, handleMovement, isMovedX, isMovedY, isMovementAllowed, moveEntity, onMoved, onMovementCheck, setDx, setDy, setMovedX, setMovedY, setVelocityX, setVelocityY
public MousePathController(EntityNavigator navigator, IMobileEntity entity)
public EntityNavigator getNavigator()
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void update()
IUpdateable
update
in interface IUpdateable
update
in class MovementController<IMobileEntity>