|
|||||||||
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.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TraceResponse
public class TraceResponse
Definition of the event TRC.
Complete message documentation: Aynchronous message. Response to TRACE command.
Field Summary | |
---|---|
protected Location |
From
Location from which the ray is emitted. |
protected UnrealId |
HitID
Id of the thing we have hit. |
protected Vector3d |
HitLocation
Point of the hit. |
protected Vector3d |
HitNormal
Normal vector to the trace ray in the point of hit. |
protected java.lang.String |
Id
An Id matching the one sent by client. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Result
True if it hit something, false if not. |
protected long |
SimTime
|
protected Location |
To
Location to which the ray is sent. |
protected boolean |
TraceActors
True if we are tracing also actors in the game (players, items). |
Constructor Summary | |
---|---|
TraceResponse()
Parameter-less contructor for the message. |
|
TraceResponse(java.lang.String Id,
Location From,
Location To,
boolean Result,
Vector3d HitNormal,
Vector3d HitLocation,
UnrealId HitID,
boolean TraceActors)
Creates new instance of the message TraceResponse. |
|
TraceResponse(TraceResponse original)
Cloning constructor from the full message. |
Method Summary | |
---|---|
Location |
getFrom()
Location from which the ray is emitted. |
UnrealId |
getHitID()
Id of the thing we have hit. |
Vector3d |
getHitLocation()
Point of the hit. |
Vector3d |
getHitNormal()
Normal vector to the trace ray in the point of hit. |
java.lang.String |
getId()
An Id matching the one sent by client. |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
Location |
getTo()
Location to which the ray is sent. |
boolean |
isResult()
True if it hit something, false if not. |
boolean |
isTraceActors()
True if we are tracing also actors in the game (players, items). |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
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 long SimTime
protected java.lang.String Id
protected Location From
protected Location To
protected boolean Result
protected Vector3d HitNormal
protected Vector3d HitLocation
protected UnrealId HitID
protected boolean TraceActors
Constructor Detail |
---|
public TraceResponse()
public TraceResponse(java.lang.String Id, Location From, Location To, boolean Result, Vector3d HitNormal, Vector3d HitLocation, UnrealId HitID, boolean TraceActors)
Id
- An Id matching the one sent by client. Allows bot to match
answer with right query.From
- Location from which the ray is emitted.To
- Location to which the ray is sent.Result
- True if it hit something, false if not.HitNormal
- Normal vector to the trace ray in the point of hit.HitLocation
- Point of the hit.HitID
- Id of the thing we have hit. May be other player or some
item or level geometry.TraceActors
- True if we are tracing also actors in the game (players,
items). False if we are tracing just level geometry.public TraceResponse(TraceResponse original)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public java.lang.String getId()
public Location getFrom()
public Location getTo()
public boolean isResult()
public Vector3d getHitNormal()
public Vector3d getHitLocation()
public UnrealId getHitID()
public boolean isTraceActors()
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |