Class MoveContinuousAction

java.lang.Object
games.stendhal.client.actions.MoveContinuousAction
All Implemented Interfaces:
SlashAction

public class MoveContinuousAction extends Object implements SlashAction
Allows a player to continue movement after teleport via portal or after map change without the need to release and press direction again.
Author:
AntumDeluge
  • Constructor Details

    • MoveContinuousAction

      public MoveContinuousAction()
  • Method Details

    • execute

      public boolean execute(String[] params, String remainder)
      Execute a command to toggle continuous movement.
      Specified by:
      execute in interface SlashAction
      Parameters:
      params - The formal parameters.
      remainder - Line content after parameters.
      Returns:
      true if command was handled.
    • sendAction

      public boolean sendAction(boolean enable, boolean notify)
      Sends the action to the server.
      Parameters:
      enable - If true, continuous movement will be enabled.
      notify - If true, notifies player of state change.
      Returns:
      true
    • sendAction

      public boolean sendAction(boolean enable)
      Sends the action to the server.
      Parameters:
      enable - If true, continuous movement will be enabled.
      Returns:
      true
    • getMaximumParameters

      public int getMaximumParameters()
      Get the maximum number of formal parameters.
      Specified by:
      getMaximumParameters in interface SlashAction
      Returns:
      Parameter count.
    • getMinimumParameters

      public int getMinimumParameters()
      Get the minimum number of formal parameters.
      Specified by:
      getMinimumParameters in interface SlashAction
      Returns:
      Parameter count.