Class HelpCommand
java.lang.Object
com.realtime.crossfire.jxclient.commands.AbstractCommand
com.realtime.crossfire.jxclient.commands.HelpCommand
- All Implemented Interfaces:
Command
Implements the command "help". It shows help for a command.
-
Constructor Summary
ConstructorsConstructorDescriptionHelpCommand(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull CommandQueue commandQueue, @NotNull Commands commands) Creates a new instance. -
Method Summary
Methods inherited from class com.realtime.crossfire.jxclient.commands.AbstractCommand
drawInfo, drawInfo, drawInfoError, getCommandName, toString
-
Constructor Details
-
HelpCommand
public HelpCommand(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull Commands commands) Creates a new instance.- Parameters:
crossfireServerConnection- the connection instancecommandQueue- the command queue instance for sending "help" commands to the servercommands- all defined client-sided commands
-
-
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
-