Class BindCommand
java.lang.Object
com.realtime.crossfire.jxclient.commands.AbstractCommand
com.realtime.crossfire.jxclient.commands.BindCommand
- All Implemented Interfaces:
Command
Implements the "bind" command. It associates a key with a command.
-
Constructor Summary
ConstructorsConstructorDescriptionBindCommand
(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull CommandCallback commandCallback, @NotNull GUICommandFactory guiCommandFactory) Creates a new instance. -
Method Summary
Methods inherited from class com.realtime.crossfire.jxclient.commands.AbstractCommand
drawInfo, drawInfo, drawInfoError, getCommandName, toString
-
Constructor Details
-
BindCommand
public BindCommand(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull GUICommandFactory guiCommandFactory) Creates a new instance.- Parameters:
crossfireServerConnection
- the connection instancecommandCallback
- the command callback to useguiCommandFactory
- the gui command factory for creating commands
-
-
Method Details
-
allArguments
public boolean allArguments()Description copied from interface:Command
Returns whether all remaining commands should be included as arguments.- Returns:
- whether all remaining commands should be included as arguments
-
execute
Description copied from interface:Command
Executes the command with the given arguments.- Parameters:
args
- the command arguments
-
getHelp
Description copied from interface:Command
Returns the help text for this command.- Returns:
- the help text
-