public class Trace extends CommandMessage
Modifier and Type | Field and Description |
---|---|
protected Location |
From
Origin point of the ray.
|
protected String |
Id
Message Id made up by you and echoed in response so you can
match up response with query.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Location |
To
Target point of the ray.
|
protected Boolean |
TraceActors
When true it means that all actors will be traced – for
example players, bots, monsters, items etc.
|
Constructor and Description |
---|
Trace()
Creates new instance of command Trace.
|
Trace(String Id,
Location From,
Location To,
Boolean TraceActors)
Creates new instance of command Trace.
|
Trace(Trace original)
Cloning constructor.
|
Modifier and Type | Method and Description |
---|---|
Location |
getFrom()
Origin point of the ray.
|
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.
|
Boolean |
isTraceActors()
When true it means that all actors will be traced – for
example players, bots, monsters, items etc.
|
Trace |
setFrom(Location From)
Origin point of the ray.
|
Trace |
setId(String Id)
Message Id made up by you and echoed in response so you can
match up response with query.
|
Trace |
setTo(Location To)
Target point of the ray.
|
Trace |
setTraceActors(Boolean TraceActors)
When true it means that all actors will be traced – for
example players, bots, monsters, items etc.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected String Id
protected Location From
protected Location To
protected Boolean TraceActors
public Trace(String Id, Location From, Location To, Boolean TraceActors)
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.TraceActors
- When true it means that all actors will be traced – for
example players, bots, monsters, items etc. in a game. With
TraceActors false we trace just level geometry.public Trace()
public Trace(Trace original)
original
- public String getId()
public Trace setId(String Id)
public Location getFrom()
public Trace setFrom(Location From)
public Location getTo()
public Boolean isTraceActors()
public Trace setTraceActors(Boolean TraceActors)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.