|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Jump
public class Jump
Representation of the GameBots2004 command JUMP. Causes bot to 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. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
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 |
---|
public static final String PROTOTYPE
protected Boolean DoubleJump
protected Double Delay
protected Double Force
Constructor Detail |
---|
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. Maximum for JumpZ is 755, which is actually more than human player can do, but it needs to be that high in order to have safe
navigation through jumping links.public Jump()
public Jump(Jump original)
original
- Method Detail |
---|
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 CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |