|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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 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 |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.Boolean DoubleJump
protected java.lang.Double Delay
protected java.lang.Double Force
Constructor Detail |
---|
public Jump(java.lang.Boolean DoubleJump, java.lang.Double Delay, java.lang.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
- Method Detail |
---|
public java.lang.Boolean isDoubleJump()
public Jump setDoubleJump(java.lang.Boolean DoubleJump)
public java.lang.Double getDelay()
public Jump setDelay(java.lang.Double Delay)
public java.lang.Double getForce()
public Jump setForce(java.lang.Double Force)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |