1 package com.realtime.crossfire.jxclient.commands;
6 import org.jetbrains.annotations.NotNull;
26 super(
"bindings", crossfireServerConnection);
42 public void execute(@NotNull
final String args) {
46 drawInfo(binding.getBindingDescription()+
": "+binding.getCommandString());
Abstract base class for Command implementations.
Iterable< KeyBinding > getBindingsForPartialCommand(@NotNull final String command, final boolean startOnly)
Searches bindings having a command text starting with the specified value.
final KeybindingsManager keybindingsManager
Where to find bindings information.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
void execute(@NotNull final String args)
Executes the command with the given arguments.the command arguments
BindingsCommand(@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final KeybindingsManager keybindingsManager)
Creates a new instance.
Implements the "bindings" command, listing currently active keybindings (for both a character and the...
Abstract base class for key bindings.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
void drawInfo(@NotNull final String message)
Displays a regular output message.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.whether all remaining commands...