Class AutoWalkAction

java.lang.Object
games.stendhal.server.actions.move.AutoWalkAction
All Implemented Interfaces:
ActionListener

public class AutoWalkAction extends Object implements 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 Details

    • AutoWalkAction

      public AutoWalkAction()
  • Method Details

    • register

      public static void register()
      Registers walk action.
    • onAction

      public void onAction(Player player, RPAction action)
      Begin walking.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the caller of the action
      action - the action to be performed