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

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

public class DialogBegin
extends CommandMessage

Representation of the GameBots2004 command DLGBEGIN. Begins a batch of DialogItem commands.


Field Summary
protected  java.lang.String Id
          Id of this dialog.
protected  java.lang.String Player
          Name of the player on who's HUD should be the dialog shown.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
DialogBegin()
          Creates new instance of command DialogBegin.
DialogBegin(DialogBegin original)
          Cloning constructor.
DialogBegin(java.lang.String Player, java.lang.String Id)
          Creates new instance of command DialogBegin.
 
Method Summary
 java.lang.String getId()
          Id of this dialog.
 java.lang.String getPlayer()
          Name of the player on who's HUD should be the dialog shown.
 DialogBegin setId(java.lang.String Id)
          Id of this dialog.
 DialogBegin setPlayer(java.lang.String Player)
          Name of the player on who's HUD should be the dialog shown.
 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

Player

protected java.lang.String Player
Name of the player on who's HUD should be the dialog shown.


Id

protected java.lang.String Id
Id of this dialog. This should be an unique alphanumeric sequence without spaces.

Constructor Detail

DialogBegin

public DialogBegin(java.lang.String Player,
                   java.lang.String Id)
Creates new instance of command DialogBegin. Begins a batch of DialogItem commands. Corresponding GameBots message for this command is DLGBEGIN.

Parameters:
Player - Name of the player on who's HUD should be the dialog shown.
Id - Id of this dialog. This should be an unique alphanumeric sequence without spaces.

DialogBegin

public DialogBegin()
Creates new instance of command DialogBegin. Begins a batch of DialogItem commands. Corresponding GameBots message for this command is DLGBEGIN.

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


DialogBegin

public DialogBegin(DialogBegin original)
Cloning constructor.

Parameters:
original -
Method Detail

getPlayer

public java.lang.String getPlayer()
Name of the player on who's HUD should be the dialog shown.


setPlayer

public DialogBegin setPlayer(java.lang.String Player)
Name of the player on who's HUD should be the dialog shown.


getId

public java.lang.String getId()
Id of this dialog. This should be an unique alphanumeric sequence without spaces.


setId

public DialogBegin setId(java.lang.String Id)
Id of this dialog. This should be an unique alphanumeric sequence without spaces.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()