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

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

public class StartPlayers
extends CommandMessage

Representation of the GameBots2004 command STARTPLRS. Will start to export IPLR messages regularly (like synchronous batch). Can be used for continuous visualization of players moving around the map. There are three categories (see below). The default values for all category is true, that means that without attributes all the categories will be exported.


Field Summary
protected  java.lang.Boolean GBBots
          All GameBots bots will be exported.
protected  java.lang.Boolean Humans
          All human players will be exported.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.Boolean UnrealBots
          All UnrealBots will be exported.
 
Constructor Summary
StartPlayers()
          Creates new instance of command StartPlayers.
StartPlayers(java.lang.Boolean Humans, java.lang.Boolean GBBots, java.lang.Boolean UnrealBots)
          Creates new instance of command StartPlayers.
StartPlayers(StartPlayers original)
          Cloning constructor.
 
Method Summary
 java.lang.Boolean isGBBots()
          All GameBots bots will be exported.
 java.lang.Boolean isHumans()
          All human players will be exported.
 java.lang.Boolean isUnrealBots()
          All UnrealBots will be exported.
 StartPlayers setGBBots(java.lang.Boolean GBBots)
          All GameBots bots will be exported.
 StartPlayers setHumans(java.lang.Boolean Humans)
          All human players will be exported.
 StartPlayers setUnrealBots(java.lang.Boolean UnrealBots)
          All UnrealBots will be exported.
 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

Humans

protected java.lang.Boolean Humans
All human players will be exported.


GBBots

protected java.lang.Boolean GBBots
All GameBots bots will be exported.


UnrealBots

protected java.lang.Boolean UnrealBots
All UnrealBots will be exported.

Constructor Detail

StartPlayers

public StartPlayers(java.lang.Boolean Humans,
                    java.lang.Boolean GBBots,
                    java.lang.Boolean UnrealBots)
Creates new instance of command StartPlayers. Will start to export IPLR messages regularly (like synchronous batch). Can be used for continuous visualization of players moving around the map. There are three categories (see below). The default values for all category is true, that means that without attributes all the categories will be exported. Corresponding GameBots message for this command is STARTPLRS.

Parameters:
Humans - All human players will be exported.
GBBots - All GameBots bots will be exported.
UnrealBots - All UnrealBots will be exported.

StartPlayers

public StartPlayers()
Creates new instance of command StartPlayers. Will start to export IPLR messages regularly (like synchronous batch). Can be used for continuous visualization of players moving around the map. There are three categories (see below). The default values for all category is true, that means that without attributes all the categories will be exported. Corresponding GameBots message for this command is STARTPLRS.

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


StartPlayers

public StartPlayers(StartPlayers original)
Cloning constructor.

Parameters:
original -
Method Detail

isHumans

public java.lang.Boolean isHumans()
All human players will be exported.


setHumans

public StartPlayers setHumans(java.lang.Boolean Humans)
All human players will be exported.


isGBBots

public java.lang.Boolean isGBBots()
All GameBots bots will be exported.


setGBBots

public StartPlayers setGBBots(java.lang.Boolean GBBots)
All GameBots bots will be exported.


isUnrealBots

public java.lang.Boolean isUnrealBots()
All UnrealBots will be exported.


setUnrealBots

public StartPlayers setUnrealBots(java.lang.Boolean UnrealBots)
All UnrealBots will be exported.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()