|
|||||||||
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.FastTrace
public class FastTrace
Representation of the GameBots2004 command FTRACE. Will send a ray from specified location to specified destination, responds with FTR message. FTRACE uses FastTrace function, which is faster then Trace function, but still rather slow.
Field Summary | |
---|---|
protected Location |
From
Origin point of the ray. |
protected java.lang.String |
Id
Message Id made up by you and echoed in response so you can match up response with query. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Location |
To
Target point of the ray. |
Constructor Summary | |
---|---|
FastTrace()
Creates new instance of command FastTrace. |
|
FastTrace(FastTrace original)
Cloning constructor. |
|
FastTrace(java.lang.String Id,
Location From,
Location To)
Creates new instance of command FastTrace. |
Method Summary | |
---|---|
Location |
getFrom()
Origin point of the ray. |
java.lang.String |
getId()
Message Id made up by you and echoed in response so you can match up response with query. |
Location |
getTo()
Target point of the ray. |
FastTrace |
setFrom(Location From)
Origin point of the ray. |
FastTrace |
setId(java.lang.String Id)
Message Id made up by you and echoed in response so you can match up response with query. |
FastTrace |
setTo(Location To)
Target point of the ray. |
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.String Id
protected Location From
protected Location To
Constructor Detail |
---|
public FastTrace(java.lang.String Id, Location From, Location To)
Id
- Message Id made up by you and echoed in response so you can
match up response with query.From
- Origin point of the ray. If you won't support From
attribute, current bot location will be taken as From.To
- Target point of the ray.public FastTrace()
public FastTrace(FastTrace original)
original
- Method Detail |
---|
public java.lang.String getId()
public FastTrace setId(java.lang.String Id)
public Location getFrom()
public FastTrace setFrom(Location From)
public Location getTo()
public FastTrace setTo(Location To)
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 |