|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.SetPlayerControl
public class SetPlayerControl
Representation of the GameBots2004 command SETPLRCTRL. Sets whether the player can control his character (movement, shooting...)
Field Summary | |
---|---|
protected java.lang.Boolean |
Control
If true, the player can behave normally. |
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. |
Constructor Summary | |
---|---|
SetPlayerControl()
Creates new instance of command SetPlayerControl. |
|
SetPlayerControl(SetPlayerControl original)
Cloning constructor. |
|
SetPlayerControl(java.lang.String Player,
java.lang.Boolean Control)
Creates new instance of command SetPlayerControl. |
Method Summary | |
---|---|
java.lang.String |
getPlayer()
Name of the affected player. |
java.lang.Boolean |
isControl()
If true, the player can behave normally. |
SetPlayerControl |
setControl(java.lang.Boolean Control)
If true, the player can behave normally. |
SetPlayerControl |
setPlayer(java.lang.String Player)
Name of the affected player. |
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 |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.String Player
protected java.lang.Boolean Control
Constructor Detail |
---|
public SetPlayerControl(java.lang.String Player, java.lang.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
- Method Detail |
---|
public java.lang.String getPlayer()
public SetPlayerControl setPlayer(java.lang.String Player)
public java.lang.Boolean isControl()
public SetPlayerControl setControl(java.lang.Boolean Control)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |