public class SetPlayerControl extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
Control
If true, the player can behave normally.
|
protected String |
Player
Name of the affected player.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
| Constructor and Description |
|---|
SetPlayerControl()
Creates new instance of command SetPlayerControl.
|
SetPlayerControl(SetPlayerControl original)
Cloning constructor.
|
SetPlayerControl(String Player,
Boolean Control)
Creates new instance of command SetPlayerControl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPlayer()
Name of the affected player.
|
Boolean |
isControl()
If true, the player can behave normally.
|
SetPlayerControl |
setControl(Boolean Control)
If true, the player can behave normally.
|
SetPlayerControl |
setPlayer(String Player)
Name of the affected player.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected String Player
protected Boolean Control
public SetPlayerControl(String Player, Boolean Control)
Player - Name of the affected player.Control - If true, the player can behave normally. If false, the player cannot perform any action.public SetPlayerControl()
public SetPlayerControl(SetPlayerControl original)
original - public String getPlayer()
public SetPlayerControl setPlayer(String Player)
public Boolean isControl()
public SetPlayerControl setControl(Boolean Control)
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.