|
||||||||||
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.udk.communication.messages.gbcommands.Rotate
public class Rotate
Turns the bot by a specified amount. Corresponding GameBots command is ROTATE.
Field Summary | |
---|---|
protected int |
Amount
Amount in UT units to rotate. |
protected String |
Axis
If provided as "Vertical", rotation will be done to Pitch (up/down). |
Constructor Summary | |
---|---|
Rotate()
Creates new instance of command Rotate. |
|
Rotate(int Amount,
String Axis)
Creates new instance of command Rotate. |
|
Rotate(Rotate original)
Cloning constructor. |
Method Summary | |
---|---|
int |
getAmount()
Amount in UT units to rotate. |
String |
getAxis()
If provided as "Vertical", rotation will be done to Pitch (up/down). |
Rotate |
setAmount(int Amount)
Amount in UT units to rotate. |
Rotate |
setAxis(String Axis)
If provided as "Vertical", rotation will be done to Pitch (up/down). |
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 int Amount
protected String Axis
Constructor Detail |
---|
public Rotate(int Amount, String Axis)
Amount
- Amount in UT units to rotate. May be negative to rotate
counter clockwise. This rotation is relatively added to bot current rotation, then the shortest turn to achieve this new rotation will be performed (so the maximum turn you can achive is to turn back by supporting value 32778 or -32778).Axis
- If provided as "Vertical", rotation will be done to Pitch
(up/down). Any other value, or not provided, and rotation
will be to Yaw (left/right).public Rotate()
public Rotate(Rotate original)
Method Detail |
---|
public int getAmount()
public Rotate setAmount(int Amount)
public String getAxis()
public Rotate setAxis(String Axis)
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 |