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

Package class diagram package Jump
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.Jump

public class Jump
extends CommandMessage

Causes bot to jump. Corresponding GameBots command is JUMP.


Field Summary
protected  double Delay
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
protected  boolean DoubleJump
          If set to True will cause the bot to perform double jump.
protected  double Force
          Force vector specifying how big the jump should be.
 
Constructor Summary
Jump()
          Creates new instance of command Jump.
Jump(boolean DoubleJump, double Delay, double Force)
          Creates new instance of command Jump.
Jump(Jump original)
          Cloning constructor.
 
Method Summary
 double getDelay()
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
 double getForce()
          Force vector specifying how big the jump should be.
 boolean isDoubleJump()
          If set to True will cause the bot to perform double jump.
 Jump setDelay(double Delay)
          After time specified here, the bot performs second jump of a double jump (if DoubleJump is true).
 Jump setDoubleJump(boolean DoubleJump)
          If set to True will cause the bot to perform double jump.
 Jump setForce(double Force)
          Force vector specifying how big the jump should be.
 String toHtmlString()
           
 String toMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DoubleJump

protected boolean DoubleJump
If set to True will cause the bot to perform double jump.


Delay

protected 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 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 420 ut units (for UDK). 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(boolean DoubleJump,
            double Delay,
            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 420 ut units (for UDK). 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!


Jump

public Jump(Jump original)
Cloning constructor.

Method Detail

isDoubleJump

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


setDoubleJump

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


getDelay

public 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(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 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 420 ut units (for UDK). 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(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 420 ut units (for UDK). If not specified, JumpZ value will be used. If not specified and DoubleJump is true, 2 * JumpZ value will be used.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.