com.realtime.crossfire.jxclient.commands
Class DebugMessagesCommand

java.lang.Object
  extended by com.realtime.crossfire.jxclient.commands.AbstractCommand
      extended by com.realtime.crossfire.jxclient.commands.DebugMessagesCommand
All Implemented Interfaces:
Command

public class DebugMessagesCommand
extends AbstractCommand

Implements the "debug_messages" command. It prints text to the log window using different message types or enables/disables printing message types.


Field Summary
private  CrossfireServerConnection crossfireServerConnection
          The connection instance.
 
Constructor Summary
DebugMessagesCommand(CrossfireServerConnection crossfireServerConnection)
          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

crossfireServerConnection

@NotNull
private final CrossfireServerConnection crossfireServerConnection
The connection instance.

Constructor Detail

DebugMessagesCommand

public DebugMessagesCommand(@NotNull
                            CrossfireServerConnection crossfireServerConnection)
Creates a new instance.

Parameters:
crossfireServerConnection - the connection instance
Method Detail

allArguments

public boolean allArguments()
Returns whether all remaining commands should be included as arguments.

Returns:
whether all remaining commands should be included as arguments

execute

public void execute(@NotNull
                    java.lang.String args)
Executes the command with the given arguments.

Parameters:
args - the command arguments