|
|||||||||
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.Rotate
public class Rotate
Representation of the GameBots2004 command ROTATE. Turns the bot by a specified amount.
Field Summary | |
---|---|
protected java.lang.Integer |
Amount
Amount in UT units to rotate. |
protected java.lang.String |
Axis
If provided as "Vertical", rotation will be done to Pitch (up/down). |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
Constructor Summary | |
---|---|
Rotate()
Creates new instance of command Rotate. |
|
Rotate(java.lang.Integer Amount,
java.lang.String Axis)
Creates new instance of command Rotate. |
|
Rotate(Rotate original)
Cloning constructor. |
Method Summary | |
---|---|
java.lang.Integer |
getAmount()
Amount in UT units to rotate. |
java.lang.String |
getAxis()
If provided as "Vertical", rotation will be done to Pitch (up/down). |
Rotate |
setAmount(java.lang.Integer Amount)
Amount in UT units to rotate. |
Rotate |
setAxis(java.lang.String Axis)
If provided as "Vertical", rotation will be done to Pitch (up/down). |
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.Integer Amount
protected java.lang.String Axis
Constructor Detail |
---|
public Rotate(java.lang.Integer Amount, java.lang.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)
original
- Method Detail |
---|
public java.lang.Integer getAmount()
public Rotate setAmount(java.lang.Integer Amount)
public java.lang.String getAxis()
public Rotate setAxis(java.lang.String Axis)
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 |