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

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

public class PlaySound
extends CommandMessage

Representation of the GameBots2004 command PLSND. Plays some sound.


Field Summary
protected  java.lang.String Player
          Name of the affected player.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.String Sound
          Name of the sound that should be played.
 
Constructor Summary
PlaySound()
          Creates new instance of command PlaySound.
PlaySound(PlaySound original)
          Cloning constructor.
PlaySound(java.lang.String Player, java.lang.String Sound)
          Creates new instance of command PlaySound.
 
Method Summary
 java.lang.String getPlayer()
          Name of the affected player.
 java.lang.String getSound()
          Name of the sound that should be played.
 PlaySound setPlayer(java.lang.String Player)
          Name of the affected player.
 PlaySound setSound(java.lang.String Sound)
          Name of the sound that should be played.
 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 affected player.


Sound

protected java.lang.String Sound
Name of the sound that should be played.

Constructor Detail

PlaySound

public PlaySound(java.lang.String Player,
                 java.lang.String Sound)
Creates new instance of command PlaySound. Plays some sound. Corresponding GameBots message for this command is PLSND.

Parameters:
Player - Name of the affected player.
Sound - Name of the sound that should be played.

PlaySound

public PlaySound()
Creates new instance of command PlaySound. Plays some sound. Corresponding GameBots message for this command is PLSND.

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


PlaySound

public PlaySound(PlaySound original)
Cloning constructor.

Parameters:
original -
Method Detail

getPlayer

public java.lang.String getPlayer()
Name of the affected player.


setPlayer

public PlaySound setPlayer(java.lang.String Player)
Name of the affected player.


getSound

public java.lang.String getSound()
Name of the sound that should be played.


setSound

public PlaySound setSound(java.lang.String Sound)
Name of the sound that should be played.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()