22 package com.realtime.crossfire.jxclient.commands;
26 import org.jetbrains.annotations.NotNull;
60 protected void drawInfo(@NotNull
final String message) {
77 protected void drawInfo(@NotNull
final String message,
final int color) {
78 crossfireServerConnection.
drawInfo(message, color);
Abstract base class for Command implementations.
Implements a client-side command.
int NDI_RED
A message color.
Interface for listeners interested in drawinfo messages received from the Crossfire server...
void drawInfoError(@NotNull final String message)
Displays an error message.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
void drawInfo(@NotNull String message, int color)
Pretends that a drawinfo message has been received.
String getCommandName()
Returns the name of the command.the name
AbstractCommand(@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
final String commandName
The name of the command.
int NDI_BLACK
A message color.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
void drawInfo(@NotNull final String message)
Displays a regular output message.
void drawInfo(@NotNull final String message, final int color)
Displays a message.