java.lang.Object com.realtime.crossfire.jxclient.commands.AbstractCommand
public abstract class AbstractCommand
Abstract base class for Command
implementations.
Field Summary | |
---|---|
private CrossfireServerConnection |
crossfireServerConnection
The connection instance. |
Constructor Summary | |
---|---|
protected |
AbstractCommand(CrossfireServerConnection crossfireServerConnection)
Creates a new instance. |
Method Summary | |
---|---|
protected void |
drawInfo(java.lang.String message)
Displays a regular output message. |
protected void |
drawInfo(java.lang.String message,
int color)
Displays a message. |
protected void |
drawInfoError(java.lang.String message)
Displays an error message. |
protected void |
drawInfoSetDebugMode(boolean printMessageTypes)
Enables or disables printing of message types. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.realtime.crossfire.jxclient.commands.Command |
---|
allArguments, execute |
Field Detail |
---|
@NotNull private final CrossfireServerConnection crossfireServerConnection
Constructor Detail |
---|
protected AbstractCommand(@NotNull CrossfireServerConnection crossfireServerConnection)
crossfireServerConnection
- the connection instanceMethod Detail |
---|
protected void drawInfo(@NotNull java.lang.String message)
message
- the messageprotected void drawInfo(@NotNull java.lang.String message, int color)
message
- the messagecolor
- the color codeprotected void drawInfoError(@NotNull java.lang.String message)
message
- the error messageprotected void drawInfoSetDebugMode(boolean printMessageTypes)
printMessageTypes
- whether to enable or disable message types