Class MousePathController
java.lang.Object
de.gurkenlabs.litiengine.physics.MovementController<IMobileEntity>
de.gurkenlabs.litiengine.input.MousePathController
- All Implemented Interfaces:
IEntityController,IUpdateable,IMovementController
A controller that allows an entity to be controlled via mouse path input.
-
Constructor Summary
ConstructorsConstructorDescriptionMousePathController(EntityNavigator navigator, IMobileEntity entity) Constructs a new MousePathController for the specified entity and navigator. -
Method Summary
Modifier and TypeMethodDescriptionGets the navigator used to control the entity's movement.voidupdate()Updates the controller, handling the entity's movement based on mouse input.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
-
update
public void update()Updates the controller, handling the entity's movement based on mouse input.- Specified by:
updatein interfaceIUpdateable- Overrides:
updatein classMovementController<IMobileEntity>- See Also: