public class MousePathController extends MovementController<IMobileEntity>
| Constructor and Description |
|---|
MousePathController(IEntityNavigator navigator,
IMobileEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
IEntityNavigator |
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, decellerateVelocityX, decellerateVelocityY, detach, getActiveForces, getDx, getDy, getEntity, getStopThreshold, getVelocityX, getVelocityY, handleMovement, isMovedX, isMovedY, isMovementAllowed, moveEntity, onMoved, onMovementCheck, setDx, setDy, setMovedX, setMovedY, setVelocityX, setVelocityYpublic MousePathController(IEntityNavigator navigator, IMobileEntity entity)
public IEntityNavigator getNavigator()
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void update()
IUpdateableupdate in interface IUpdateableupdate in class MovementController<IMobileEntity>