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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Execute a command to toggle continuous movement.int
Get the maximum number of formal parameters.int
Get the minimum number of formal parameters.boolean
sendAction(boolean enable)
Sends the action to the server.boolean
sendAction(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:
execute
in interfaceSlashAction
- 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
- 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:
getMaximumParameters
in interfaceSlashAction
- Returns:
- Parameter count.
-
getMinimumParameters
public int getMinimumParameters()Get the minimum number of formal parameters.- Specified by:
getMinimumParameters
in interfaceSlashAction
- Returns:
- Parameter count.
-