Crossfire JXClient, Trunk
|
Public Member Functions | |
AgainCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final CommandExecutor commandExecutor, @NotNull final CommandHistory commandHistory) | |
boolean | allArguments () |
void | execute (@NotNull final String args) |
String | getHelp () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Attributes | |
final CommandExecutor | commandExecutor |
final CommandHistory | commandHistory |
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 "again" command. It repeats the previously executed command.
Definition at line 34 of file AgainCommand.java.
com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand | ( | @NotNull final CrossfireServerConnection | crossfireServerConnection, |
@NotNull final CommandExecutor | commandExecutor, | ||
@NotNull final CommandHistory | commandHistory | ||
) |
Creates a new instance.
crossfireServerConnection | the connection instance |
commandExecutor | the command executor for executing the commands |
commandHistory | the command history for determining the command to execute |
Definition at line 55 of file AgainCommand.java.
References com.realtime.crossfire.jxclient.commands.AgainCommand.commandExecutor, com.realtime.crossfire.jxclient.commands.AgainCommand.commandHistory, and com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection.
boolean com.realtime.crossfire.jxclient.commands.AgainCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 62 of file AgainCommand.java.
void com.realtime.crossfire.jxclient.commands.AgainCommand.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 67 of file AgainCommand.java.
References com.realtime.crossfire.jxclient.commands.AgainCommand.commandExecutor, com.realtime.crossfire.jxclient.commands.AgainCommand.commandHistory, com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.gui.textinput.CommandExecutor.executeCommand(), and com.realtime.crossfire.jxclient.settings.CommandHistory.last().
String com.realtime.crossfire.jxclient.commands.AgainCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 92 of file AgainCommand.java.
|
private |
The CommandExecutor for executing the commands.
Definition at line 40 of file AgainCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand(), and com.realtime.crossfire.jxclient.commands.AgainCommand.execute().
|
private |
The CommandHistory for determining the command to execute.
Definition at line 46 of file AgainCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand(), and com.realtime.crossfire.jxclient.commands.AgainCommand.execute().