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

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

public class Jump
extends CommandMessage

Representation of the GameBots2004 command JUMP. Causes bot to jump.


Field Summary
protected  java.lang.Double Delay
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
protected  java.lang.Boolean DoubleJump
          If set to True will cause the bot to perform double jump.
protected  java.lang.Double Force
          Force vector specifying how big the jump should be.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Jump()
          Creates new instance of command Jump.
Jump(java.lang.Boolean DoubleJump, java.lang.Double Delay, java.lang.Double Force)
          Creates new instance of command Jump.
Jump(Jump original)
          Cloning constructor.
 
Method Summary
 java.lang.Double getDelay()
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
 java.lang.Double getForce()
          Force vector specifying how big the jump should be.
 java.lang.Boolean isDoubleJump()
          If set to True will cause the bot to perform double jump.
 Jump setDelay(java.lang.Double Delay)
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
 Jump setDoubleJump(java.lang.Boolean DoubleJump)
          If set to True will cause the bot to perform double jump.
 Jump setForce(java.lang.Double Force)
          Force vector specifying how big the jump should be.
 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

DoubleJump

protected java.lang.Boolean DoubleJump
If set to True will cause the bot to perform double jump.


Delay

protected java.lang.Double Delay
After time specified here, the bot performs second jump of a double jump (if DoubleJump is true). Time is in seconds. If not specified and DoubleJump is true, 0.5 seconds will be used.


Force

protected java.lang.Double Force
Force vector specifying how big the jump should be. Can't be set more than bot JumpZ variable for single jump and 2 * JumpZ variable for doube jump. Default value of JumpZ is 340 ut units (for UT2004). If not specified, JumpZ value will be used. If not specified and DoubleJump is true, 2 * JumpZ value will be used.

Constructor Detail

Jump

public Jump(java.lang.Boolean DoubleJump,
            java.lang.Double Delay,
            java.lang.Double Force)
Creates new instance of command Jump. Causes bot to jump. Corresponding GameBots message for this command is JUMP.

Parameters:
DoubleJump - If set to True will cause the bot to perform double jump.
Delay - After time specified here, the bot performs second jump of a double jump (if DoubleJump is true). Time is in seconds. If not specified and DoubleJump is true, 0.5 seconds will be used.
Force - Force vector specifying how big the jump should be. Can't be set more than bot JumpZ variable for single jump and 2 * JumpZ variable for doube jump. Default value of JumpZ is 340 ut units (for UT2004). If not specified, JumpZ value will be used. If not specified and DoubleJump is true, 2 * JumpZ value will be used.

Jump

public Jump()
Creates new instance of command Jump. Causes bot to jump. Corresponding GameBots message for this command is JUMP.

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


Jump

public Jump(Jump original)
Cloning constructor.

Parameters:
original -
Method Detail

isDoubleJump

public java.lang.Boolean isDoubleJump()
If set to True will cause the bot to perform double jump.


setDoubleJump

public Jump setDoubleJump(java.lang.Boolean DoubleJump)
If set to True will cause the bot to perform double jump.


getDelay

public java.lang.Double getDelay()
After time specified here, the bot performs second jump of a double jump (if DoubleJump is true). Time is in seconds. If not specified and DoubleJump is true, 0.5 seconds will be used.


setDelay

public Jump setDelay(java.lang.Double Delay)
After time specified here, the bot performs second jump of a double jump (if DoubleJump is true). Time is in seconds. If not specified and DoubleJump is true, 0.5 seconds will be used.


getForce

public java.lang.Double getForce()
Force vector specifying how big the jump should be. Can't be set more than bot JumpZ variable for single jump and 2 * JumpZ variable for doube jump. Default value of JumpZ is 340 ut units (for UT2004). If not specified, JumpZ value will be used. If not specified and DoubleJump is true, 2 * JumpZ value will be used.


setForce

public Jump setForce(java.lang.Double Force)
Force vector specifying how big the jump should be. Can't be set more than bot JumpZ variable for single jump and 2 * JumpZ variable for doube jump. Default value of JumpZ is 340 ut units (for UT2004). If not specified, JumpZ value will be used. If not specified and DoubleJump is true, 2 * JumpZ value will be used.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()