Class MoveContinuousAction

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

public class MoveContinuousAction extends Object implements ActionListener
Action that allows a player to continue movement after teleport via portal or after map change without the need to release and press direction again. To enable/disable: - Execute slash command "movecont". - Change "Continuous Movement" setting in settings dialog. FIXME: Causes issues with portals where player is teleported to side opposite of direction pushed.
Author:
AntumDeluge
  • Constructor Details

    • MoveContinuousAction

      public MoveContinuousAction()
  • Method Details

    • register

      public static void register()
      Registers continuous movement action.
    • onAction

      public void onAction(Player player, RPAction action)
      Enable/Disable continuous movement.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the caller of the action
      action - the action to be performed