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