java.lang.Objectcom.realtime.crossfire.jxclient.commands.AbstractCommand
com.realtime.crossfire.jxclient.commands.BindCommand
public class BindCommand
Implements the "bind" command. It associates a key with a command.
| Field Summary | |
|---|---|
private CommandCallback |
commandCallback
The CommandCallback to use. |
private Commands |
commands
The commands instance for executing commands. |
private Macros |
macros
The Macros instance to use. |
| Constructor Summary | |
|---|---|
BindCommand(CrossfireServerConnection crossfireServerConnection,
Commands commands,
CommandCallback commandCallback,
Macros macros)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
allArguments()
Returns whether all remaining commands should be included as arguments. |
void |
execute(java.lang.String args)
Executes the command with the given arguments. |
| Methods inherited from class com.realtime.crossfire.jxclient.commands.AbstractCommand |
|---|
drawInfo, drawInfo, drawInfoError, drawInfoSetDebugMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final CommandCallback commandCallback
CommandCallback to use.
@NotNull private final Commands commands
@NotNull private final Macros macros
Macros instance to use.
| Constructor Detail |
|---|
public BindCommand(@NotNull
CrossfireServerConnection crossfireServerConnection,
@NotNull
Commands commands,
@NotNull
CommandCallback commandCallback,
@NotNull
Macros macros)
crossfireServerConnection - the connection instancecommands - the commands instance for executing commandscommandCallback - the command callback to usemacros - the macros instance to use| Method Detail |
|---|
public boolean allArguments()
public void execute(@NotNull
java.lang.String args)
args - the command arguments