|
||||||||||
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.udk.communication.messages.gbcommands.Jump
public class Jump
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 |
---|
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 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)
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 |