Package de.gurkenlabs.litiengine.input
Class MousePathController
java.lang.Object
de.gurkenlabs.litiengine.physics.MovementController<IMobileEntity>
de.gurkenlabs.litiengine.input.MousePathController
- All Implemented Interfaces:
IEntityController
,IUpdateable
,IMovementController
public class MousePathController
extends MovementController<IMobileEntity>
Constructor Summary
Constructors Constructor Description MousePathController(EntityNavigator navigator, IMobileEntity entity)
Method Summary
Modifier and Type Method Description EntityNavigator
getNavigator()
void
update()
This method is called by the game loop on all objects that are attached to the loop.Methods inherited from class de.gurkenlabs.litiengine.physics.MovementController
apply, attach, detach, getActiveForces, getDx, getDy, getEntity, getForce, getMoveAngle, getVelocity, handleMovement, isMovementAllowed, moveEntity, onMovementCheck, setDx, setDy, setVelocity
Constructor Details
Method Details
getNavigator
update
public void update()Description copied from interface:IUpdateable
This method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using theClientConfiguration
.- Specified by:
update
in interfaceIUpdateable
- Overrides:
update
in classMovementController<IMobileEntity>
- See Also:
ClientConfiguration.setMaxFps(int)