Package games.stendhal.client.actions
Class CastSpellAction
java.lang.Object
games.stendhal.client.actions.CastSpellAction
- All Implemented Interfaces:
SlashAction
Simple action to cast a spell at a target (for testing purposes)
Usage:
[spell id] [target name or id]
- Author:
- madmetzger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Execute a chat command.int
Get the maximum number of formal parameters.int
Get the minimum number of formal parameters.
-
Constructor Details
-
CastSpellAction
public CastSpellAction()
-
-
Method Details
-
execute
Description copied from interface:SlashAction
Execute a chat command.- Specified by:
execute
in interfaceSlashAction
- Parameters:
params
- The formal parameters.remainder
- Line content after parameters.- Returns:
true
if command was handled.
-
getMaximumParameters
public int getMaximumParameters()Description copied from interface:SlashAction
Get the maximum number of formal parameters.- Specified by:
getMaximumParameters
in interfaceSlashAction
- Returns:
- The parameter count.
-
getMinimumParameters
public int getMinimumParameters()Description copied from interface:SlashAction
Get the minimum number of formal parameters.- Specified by:
getMinimumParameters
in interfaceSlashAction
- Returns:
- The parameter count.
-