Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | allArguments () |
void | execute (@NotNull final String args) |
String | getHelp () |
ScriptCommand (@NotNull final ScriptManager scriptManager, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Attributes | |
final ScriptManager | scriptManager |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
void | drawInfo (@NotNull final String message) |
void | drawInfo (@NotNull final String message, final int color) |
void | drawInfoError (@NotNull final String message) |
Implements the "script" command. It runs a new script.
Definition at line 33 of file ScriptCommand.java.
com.realtime.crossfire.jxclient.commands.ScriptCommand.ScriptCommand | ( | @NotNull final ScriptManager | scriptManager, |
@NotNull final CrossfireServerConnection | crossfireServerConnection | ||
) |
Creates a new instance.
scriptManager | the script manager to use |
crossfireServerConnection | the connection instance |
Definition at line 46 of file ScriptCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection, and com.realtime.crossfire.jxclient.commands.ScriptCommand.scriptManager.
boolean com.realtime.crossfire.jxclient.commands.ScriptCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 52 of file ScriptCommand.java.
void com.realtime.crossfire.jxclient.commands.ScriptCommand.execute | ( | @NotNull final String | args | ) |
Executes the command with the given arguments.
args | the command arguments |
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 57 of file ScriptCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.scripts.ScriptManager.newScript(), and com.realtime.crossfire.jxclient.commands.ScriptCommand.scriptManager.
String com.realtime.crossfire.jxclient.commands.ScriptCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 68 of file ScriptCommand.java.
|
private |
The ScriptManager to use.
Definition at line 39 of file ScriptCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ScriptCommand.execute(), and com.realtime.crossfire.jxclient.commands.ScriptCommand.ScriptCommand().