Crossfire JXClient, Trunk
R20561
|
Implements the "again" command. More...
Public Member Functions | |||
AgainCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final CommandExecutor commandExecutor, @NotNull final CommandHistory commandHistory) | |||
Creates a new instance. More... | |||
boolean | allArguments () | ||
Returns whether all remaining commands should be included as arguments.
| |||
void | execute (@NotNull final String args) | ||
Executes the command with the given arguments.
| |||
![]() | |||
String | getCommandName () | ||
Returns the name of the command.
| |||
String | toString () | ||
Private Attributes | |
final CommandExecutor | commandExecutor |
The CommandExecutor for executing the commands. More... | |
final CommandHistory | commandHistory |
The CommandHistory for determining the command to execute. More... | |
Additional Inherited Members | |
![]() | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
Creates a new instance. More... | |
void | drawInfo (@NotNull final String message) |
Displays a regular output message. More... | |
void | drawInfo (@NotNull final String message, final int color) |
Displays a message. More... | |
void | drawInfoError (@NotNull final String message) |
Displays an error message. More... | |
Implements the "again" command.
It repeats the previously executed command.
Definition at line 33 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 54 of file AgainCommand.java.
References com.realtime.crossfire.jxclient.commands.AgainCommand.commandExecutor, and com.realtime.crossfire.jxclient.commands.AgainCommand.commandHistory.
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 64 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 72 of file AgainCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.gui.textinput.CommandExecutor.executeCommand(), and com.realtime.crossfire.jxclient.settings.CommandHistory.last().
|
private |
The CommandExecutor for executing the commands.
Definition at line 39 of file AgainCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand().
|
private |
The CommandHistory for determining the command to execute.
Definition at line 45 of file AgainCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand().