cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class Console

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Console

public class Console
extends CommandMessage

Representation of the GameBots2004 command CONSOLE. You can run all console command by this.


Field Summary
protected  java.lang.String Command
          The actual console command.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Console()
          Creates new instance of command Console.
Console(Console original)
          Cloning constructor.
Console(java.lang.String Command)
          Creates new instance of command Console.
 
Method Summary
 java.lang.String getCommand()
          The actual console command.
 Console setCommand(java.lang.String Command)
          The actual console command.
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Command

protected java.lang.String Command
The actual console command.

Constructor Detail

Console

public Console(java.lang.String Command)
Creates new instance of command Console. You can run all console command by this. Corresponding GameBots message for this command is CONSOLE.

Parameters:
Command - The actual console command.

Console

public Console()
Creates new instance of command Console. You can run all console command by this. Corresponding GameBots message for this command is CONSOLE.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


Console

public Console(Console original)
Cloning constructor.

Parameters:
original -
Method Detail

getCommand

public java.lang.String getCommand()
The actual console command.


setCommand

public Console setCommand(java.lang.String Command)
The actual console command.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()