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

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

public class SetCrouch
extends CommandMessage

Representation of the GameBots2004 command SETCROUCH. Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset.


Field Summary
protected  java.lang.Boolean Crouch
          True or false to crouch or unrouch.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
SetCrouch()
          Creates new instance of command SetCrouch.
SetCrouch(java.lang.Boolean Crouch)
          Creates new instance of command SetCrouch.
SetCrouch(SetCrouch original)
          Cloning constructor.
 
Method Summary
 java.lang.Boolean isCrouch()
          True or false to crouch or unrouch.
 SetCrouch setCrouch(java.lang.Boolean Crouch)
          True or false to crouch or unrouch.
 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

Crouch

protected java.lang.Boolean Crouch
True or false to crouch or unrouch.

Constructor Detail

SetCrouch

public SetCrouch(java.lang.Boolean Crouch)
Creates new instance of command SetCrouch. Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset. Corresponding GameBots message for this command is SETCROUCH.

Parameters:
Crouch - True or false to crouch or unrouch.

SetCrouch

public SetCrouch()
Creates new instance of command SetCrouch. Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset. Corresponding GameBots message for this command is SETCROUCH.

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


SetCrouch

public SetCrouch(SetCrouch original)
Cloning constructor.

Parameters:
original -
Method Detail

isCrouch

public java.lang.Boolean isCrouch()
True or false to crouch or unrouch.


setCrouch

public SetCrouch setCrouch(java.lang.Boolean Crouch)
True or false to crouch or unrouch.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()