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

Package class diagram package 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  String Command
          The actual console command.
static 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(String Command)
          Creates new instance of command Console.
 
Method Summary
 String getCommand()
          The actual console command.
 Console setCommand(String Command)
          The actual console command.
 String toHtmlString()
           
 String toMessage()
           
 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 String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Command

protected String Command
The actual console command.

Constructor Detail

Console

public Console(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 String getCommand()
The actual console command.


setCommand

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.