Class AgainCommand
java.lang.Object
com.realtime.crossfire.jxclient.commands.AbstractCommand
com.realtime.crossfire.jxclient.commands.AgainCommand
- All Implemented Interfaces:
Command
Implements the "again" command. It repeats the previously executed command.
-
Constructor Summary
ConstructorsConstructorDescriptionAgainCommand(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull CommandExecutor commandExecutor, @NotNull CommandHistory commandHistory) Creates a new instance. -
Method Summary
Methods inherited from class com.realtime.crossfire.jxclient.commands.AbstractCommand
drawInfo, drawInfo, drawInfoError, getCommandName, toString
-
Constructor Details
-
AgainCommand
public AgainCommand(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull CommandExecutor commandExecutor, @NotNull @NotNull CommandHistory commandHistory) Creates a new instance.- Parameters:
crossfireServerConnection- the connection instancecommandExecutor- the command executor for executing the commandscommandHistory- the command history for determining the command to execute
-
-
Method Details
-
allArguments
public boolean allArguments()Description copied from interface:CommandReturns whether all remaining commands should be included as arguments.- Returns:
- whether all remaining commands should be included as arguments
-
execute
Description copied from interface:CommandExecutes the command with the given arguments.- Parameters:
args- the command arguments
-
getHelp
Description copied from interface:CommandReturns the help text for this command.- Returns:
- the help text
-