Class AutoWalkAction
java.lang.Object
games.stendhal.server.actions.move.AutoWalkAction
- All Implemented Interfaces:
ActionListener
Action that sets character speed and begins moving in faced direction. If
the action is executed with the MODE attribute set to "stop" it will
exclusively stop the entity's movement and set auto-walking off. Otherwise
it will toggle auto-walk.
To enable:
- Execute slash command "/walk".
- Right-click player and select "walk".
- Hold "Alt" key and press any direction key.
To disable:
- Execute slash command "/walk" or "/stopwalk".
- Right-click player and select "stop".
- Press the arrow key in the direction that the player is currently walking.
- Click any area of the map that is walkable.
- Walk into a collision tile (colliding with other entities will not disable auto-walk).
- Author:
- AntumDeluge
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AutoWalkAction
public AutoWalkAction()
-
-
Method Details
-
register
public static void register()Registers walk action. -
onAction
Begin walking.- Specified by:
onAction
in interfaceActionListener
- Parameters:
player
- the caller of the actionaction
- the action to be performed
-