|
|||||||||
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.DriveTo
public class DriveTo
Representation of the GameBots2004 command DRIVETO. Only command that is able to move vehicles. Turn towards target specified and move directly to its destination. If there is an obstacle between target and current position, you will hit it on your way to target (no obstacle avoidance).
Field Summary | |
---|---|
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected UnrealId |
Target
The unique id of a NavPoint, Mover or item (beware, not all of the items have unique id). |
Constructor Summary | |
---|---|
DriveTo()
Creates new instance of command DriveTo. |
|
DriveTo(DriveTo original)
Cloning constructor. |
|
DriveTo(UnrealId Target)
Creates new instance of command DriveTo. |
Method Summary | |
---|---|
UnrealId |
getTarget()
The unique id of a NavPoint, Mover or item (beware, not all of the items have unique id). |
DriveTo |
setTarget(UnrealId Target)
The unique id of a NavPoint, Mover or item (beware, not all of the items have unique id). |
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 UnrealId Target
Constructor Detail |
---|
public DriveTo(UnrealId Target)
Target
- The unique id of a NavPoint, Mover or item (beware, not all of the items
have unique id). Recommended is to specify NavPoint Id as it is always unique.
Won't work with player IDs.public DriveTo()
public DriveTo(DriveTo original)
original
- Method Detail |
---|
public UnrealId getTarget()
public DriveTo setTarget(UnrealId Target)
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 |