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

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

public class DialogEnd
extends CommandMessage

Representation of the GameBots2004 command DLGEND. Ends a batch of DialogItem commands, showing the dialog on screen.


Field Summary
protected  java.lang.String Id
          Dialog identification.
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
DialogEnd()
          Creates new instance of command DialogEnd.
DialogEnd(DialogEnd original)
          Cloning constructor.
DialogEnd(java.lang.String Player, java.lang.String Id)
          Creates new instance of command DialogEnd.
 
Method Summary
 java.lang.String getId()
          Dialog identification.
 java.lang.String getPlayer()
          Name of the player on who's HUD should be the dialog shown.
 DialogEnd setId(java.lang.String Id)
          Dialog identification.
 DialogEnd 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
Dialog identification. This should be an unique positive integer.

Constructor Detail

DialogEnd

public DialogEnd(java.lang.String Player,
                 java.lang.String Id)
Creates new instance of command DialogEnd. Ends a batch of DialogItem commands, showing the dialog on screen. Corresponding GameBots message for this command is DLGEND.

Parameters:
Player - Name of the player on who's HUD should be the dialog shown.
Id - Dialog identification. This should be an unique positive integer.

DialogEnd

public DialogEnd()
Creates new instance of command DialogEnd. Ends a batch of DialogItem commands, showing the dialog on screen. Corresponding GameBots message for this command is DLGEND.

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


DialogEnd

public DialogEnd(DialogEnd 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 DialogEnd setPlayer(java.lang.String Player)
Name of the player on who's HUD should be the dialog shown.


getId

public java.lang.String getId()
Dialog identification. This should be an unique positive integer.


setId

public DialogEnd setId(java.lang.String Id)
Dialog identification. This should be an unique positive integer.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()