Package games.stendhal.client.actions
Class MoveContinuousAction
java.lang.Object
games.stendhal.client.actions.MoveContinuousAction
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecute a command to toggle continuous movement.intGet the maximum number of formal parameters.intGet the minimum number of formal parameters.booleansendAction(boolean enable)Sends the action to the server.booleansendAction(boolean enable, boolean notify)Sends the action to the server.
-
Constructor Details
-
MoveContinuousAction
public MoveContinuousAction()
-
-
Method Details
-
execute
Execute a command to toggle continuous movement.- Specified by:
executein interfaceSlashAction- Parameters:
params- The formal parameters.remainder- Line content after parameters.- Returns:
trueif command was handled.
-
sendAction
public boolean sendAction(boolean enable, boolean notify)Sends the action to the server.- Parameters:
enable- Iftrue, continuous movement will be enabled.notify- Iftrue, notifies player of state change.- Returns:
true
-
sendAction
public boolean sendAction(boolean enable)Sends the action to the server.- Parameters:
enable- Iftrue, continuous movement will be enabled.- Returns:
true
-
getMaximumParameters
public int getMaximumParameters()Get the maximum number of formal parameters.- Specified by:
getMaximumParametersin interfaceSlashAction- Returns:
- Parameter count.
-
getMinimumParameters
public int getMinimumParameters()Get the minimum number of formal parameters.- Specified by:
getMinimumParametersin interfaceSlashAction- Returns:
- Parameter count.
-