public class Jump
extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected boolean DoubleJump
protected double Delay
protected double Force
public Jump(boolean DoubleJump, double Delay, double Force)
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.public Jump()
public Jump(Jump original)
public boolean isDoubleJump()
public Jump setDoubleJump(boolean DoubleJump)
public double getDelay()
public Jump setDelay(double Delay)
public double getForce()
public Jump setForce(double Force)
public String toString()
toString
in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.