public class Jump extends 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.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
| 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() |
public static final String PROTOTYPE
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 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.public Jump()
public Jump(Jump original)
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 CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.