|
||||||||||
| 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.InfoMessage
cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.TraceResponse
public class TraceResponse
Aynchronous message. Response to TRACE command. Corresponding GameBots message is TRC.
| Field Summary | |
|---|---|
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
From
Location from which the ray is emitted. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
HitID
Id of the thing we have hit. |
protected javax.vecmath.Vector3d |
HitLocation
Point of the hit. |
protected javax.vecmath.Vector3d |
HitNormal
Normal vector to the trace ray in the point of hit. |
protected String |
Id
An Id matching the one sent by client. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Result
True if it hit something, false if not. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.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()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
TraceResponse(String Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location From,
cz.cuni.amis.pogamut.base3d.worldview.object.Location To,
boolean Result,
javax.vecmath.Vector3d HitNormal,
javax.vecmath.Vector3d HitLocation,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId HitID,
boolean TraceActors)
Creates new instance of command TraceResponse. |
|
TraceResponse(TraceResponse original)
Cloning constructor. |
|
| Method Summary | |
|---|---|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getFrom()
Location from which the ray is emitted. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getHitID()
Id of the thing we have hit. |
javax.vecmath.Vector3d |
getHitLocation()
Point of the hit. |
javax.vecmath.Vector3d |
getHitNormal()
Normal vector to the trace ray in the point of hit. |
String |
getId()
An Id matching the one sent by client. |
long |
getSimTime()
|
cz.cuni.amis.pogamut.base3d.worldview.object.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). |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
|---|
getWorldEvent |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| 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 String Id
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location From
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location To
protected boolean Result
protected javax.vecmath.Vector3d HitNormal
protected javax.vecmath.Vector3d HitLocation
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId HitID
protected boolean TraceActors
| Constructor Detail |
|---|
public TraceResponse(String Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location From,
cz.cuni.amis.pogamut.base3d.worldview.object.Location To,
boolean Result,
javax.vecmath.Vector3d HitNormal,
javax.vecmath.Vector3d HitLocation,
cz.cuni.amis.pogamut.unreal.communication.messages.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)
public TraceResponse()
| Method Detail |
|---|
public String getId()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getFrom()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getTo()
public boolean isResult()
public javax.vecmath.Vector3d getHitNormal()
public javax.vecmath.Vector3d getHitLocation()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getHitID()
public boolean isTraceActors()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||