public class PlaySound extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected String |
Player
Name of the affected player.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
Sound
Name of the sound that should be played.
|
| Constructor and Description |
|---|
PlaySound()
Creates new instance of command PlaySound.
|
PlaySound(PlaySound original)
Cloning constructor.
|
PlaySound(String Player,
String Sound)
Creates new instance of command PlaySound.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPlayer()
Name of the affected player.
|
String |
getSound()
Name of the sound that should be played.
|
PlaySound |
setPlayer(String Player)
Name of the affected player.
|
PlaySound |
setSound(String Sound)
Name of the sound that should be played.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected String Player
protected String Sound
public PlaySound(String Player, String Sound)
Player - Name of the affected player.Sound - Name of the sound that should be played.public PlaySound()
public PlaySound(PlaySound original)
original - public String getPlayer()
public String getSound()
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.