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.
-
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
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 MovementController
apply, attach, detach, getActiveForces, getDx, getDy, getEntity, getForce, getMoveAngle, getVelocity, handleMovement, isMovementAllowed, moveEntity, onMovementCheck, setDx, setDy, setVelocityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IUpdateable
getUpdatePriority
-
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: