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

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

public class SetPlayerControl
extends CommandMessage

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

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.


Control

protected java.lang.Boolean Control
If true, the player can behave normally. If false, the player cannot perform any action.

Constructor Detail

SetPlayerControl

public SetPlayerControl(java.lang.String Player,
                        java.lang.Boolean Control)
Creates new instance of command SetPlayerControl. Sets whether the player can control his character (movement, shooting...) Corresponding GameBots message for this command is SETPLRCTRL.

Parameters:
Player - Name of the affected player.
Control - If true, the player can behave normally. If false, the player cannot perform any action.

SetPlayerControl

public SetPlayerControl()
Creates new instance of command SetPlayerControl. Sets whether the player can control his character (movement, shooting...) Corresponding GameBots message for this command is SETPLRCTRL.

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


SetPlayerControl

public SetPlayerControl(SetPlayerControl original)
Cloning constructor.

Parameters:
original -
Method Detail

getPlayer

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


setPlayer

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


isControl

public java.lang.Boolean isControl()
If true, the player can behave normally. If false, the player cannot perform any action.


setControl

public SetPlayerControl setControl(java.lang.Boolean Control)
If true, the player can behave normally. If false, the player cannot perform any action.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()