22 package com.realtime.crossfire.jxclient.commands;
28 import org.jetbrains.annotations.NotNull;
48 super(
"exec", crossfireServerConnection);
64 public void execute(@NotNull
final String args) {
Abstract base class for Command implementations.
void execute(@NotNull final String args)
Executes the command with the given arguments.the command arguments
void drawInfoError(@NotNull final String message)
Displays an error message.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
CommandList getCommandList(@NotNull String args)
Returns a command list.
final CommandCallback commandCallback
The CommandCallback to lookup commands.
An Exception thrown if a command does not exist.
Interface that defines callback functions needed by commands.
ExecCommand(@NotNull final CommandCallback commandCallback, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
Implements the "exec" command.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.whether all remaining commands...
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
A list of GUICommand instances.
void execute()
Execute the command list by calling GUICommand#execute() for each command in order.