public class AutoTraceRayMessage extends AutoTraceRay implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
class |
AutoTraceRayMessage.AutoTraceRayLocalMessage
Implementation of the local part of the GameBots2004 message ATR, used
to facade ATRMessage.
|
class |
AutoTraceRayMessage.AutoTraceRaySharedMessage
Implementation of the shared part of the GameBots2004 message ATR, used
to facade ATRMessage.
|
class |
AutoTraceRayMessage.AutoTraceRayStaticMessage
Implementation of the static part of the GameBots2004 message ATR, used
to facade ATRMessage.
|
AutoTraceRay.AutoTraceRayUpdateIWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
protected boolean |
FastTrace
True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).
|
protected boolean |
FastTrace_Set
Whether property 'FastTrace' was received from GB2004.
|
protected boolean |
FloorCorrection
If we should correct ray directions accoring floor normal.
|
protected boolean |
FloorCorrection_Set
Whether property 'FloorCorrection' was received from GB2004.
|
protected Location |
From
Location from which the ray is emitted.
|
protected boolean |
From_Set
Whether property 'From' was received from GB2004.
|
protected UnrealId |
HitId
Id of the actor we have hit.
|
protected boolean |
HitId_Set
Whether property 'HitId' was received from GB2004.
|
protected Location |
HitLocation
Vector with location of the collision (not sent if FastTrace
is True).
|
protected boolean |
HitLocation_Set
Whether property 'HitLocation' was received from GB2004.
|
protected javax.vecmath.Vector3d |
HitNormal
Vector with normal of the plane we have hit (not sent if
FastTrace is True).
|
protected boolean |
HitNormal_Set
Whether property 'HitNormal' was received from GB2004.
|
protected UnrealId |
Id
An Id for this ray (should be unique), assigned by the user
when adding ray.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected boolean |
Result
True if it hit something, false if not.
|
protected boolean |
Result_Set
Whether property 'Result' was received from GB2004.
|
protected ITeamId |
TeamId |
protected Location |
To
Location to which the ray is sent.
|
protected boolean |
To_Set
Whether property 'To' was received from GB2004.
|
protected boolean |
TraceActors
If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)
|
protected boolean |
TraceActors_Set
Whether property 'TraceActors' was received from GB2004.
|
PROTOTYPE, SimTime| Constructor and Description |
|---|
AutoTraceRayMessage()
Parameter-less contructor for the message.
|
AutoTraceRayMessage(AutoTraceRayMessage original)
Cloning constructor from the full message.
|
AutoTraceRayMessage(UnrealId Id,
Location From,
Location To,
boolean FastTrace,
boolean FloorCorrection,
boolean Result,
javax.vecmath.Vector3d HitNormal,
Location HitLocation,
boolean TraceActors,
UnrealId HitId)
Creates new instance of the message AutoTraceRay.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getFrom()
Location from which the ray is emitted.
|
UnrealId |
getHitId()
Id of the actor we have hit.
|
Location |
getHitLocation()
Vector with location of the collision (not sent if FastTrace
is True).
|
javax.vecmath.Vector3d |
getHitNormal()
Vector with normal of the plane we have hit (not sent if
FastTrace is True).
|
UnrealId |
getId()
An Id for this ray (should be unique), assigned by the user
when adding ray.
|
AutoTraceRayLocal |
getLocal() |
ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
AutoTraceRayShared |
getShared() |
ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
AutoTraceRayStatic |
getStatic() |
IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
ITeamId |
getTeamId() |
Location |
getTo()
Location to which the ray is sent.
|
boolean |
isFastTrace()
True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).
|
boolean |
isFloorCorrection()
If we should correct ray directions accoring floor normal.
|
boolean |
isResult()
True if it hit something, false if not.
|
boolean |
isTraceActors()
If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)
|
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object) |
getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected Location From
protected boolean From_Set
protected Location To
protected boolean To_Set
protected boolean FastTrace
protected boolean FastTrace_Set
protected boolean FloorCorrection
protected boolean FloorCorrection_Set
protected boolean Result
protected boolean Result_Set
protected javax.vecmath.Vector3d HitNormal
protected boolean HitNormal_Set
protected Location HitLocation
protected boolean HitLocation_Set
protected boolean TraceActors
protected boolean TraceActors_Set
protected UnrealId HitId
protected boolean HitId_Set
public AutoTraceRayMessage()
public AutoTraceRayMessage(UnrealId Id, Location From, Location To, boolean FastTrace, boolean FloorCorrection, boolean Result, javax.vecmath.Vector3d HitNormal, Location HitLocation, boolean TraceActors, UnrealId HitId)
Id - An Id for this ray (should be unique), assigned by the user
when adding ray.From - Location from which the ray is emitted.To - Location to which the ray is sent.FastTrace - True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).FloorCorrection - If we should correct ray directions accoring floor normal. Note: Has issue - we can't set set rays up or down when correction is active.Result - True if it hit something, false if not.HitNormal - Vector with normal of the plane we have hit (not sent if
FastTrace is True).HitLocation - Vector with location of the collision (not sent if FastTrace
is True).TraceActors - If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)HitId - Id of the actor we have hit. (Sent if FastTrace is False and
TraceActors is True).public AutoTraceRayMessage(AutoTraceRayMessage original)
original - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
AutoTraceRaygetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class AutoTraceRaypublic Location getFrom()
AutoTraceRaygetFrom in class AutoTraceRaypublic Location getTo()
AutoTraceRaygetTo in class AutoTraceRaypublic boolean isFastTrace()
AutoTraceRayisFastTrace in class AutoTraceRaypublic boolean isFloorCorrection()
AutoTraceRayisFloorCorrection in class AutoTraceRaypublic boolean isResult()
AutoTraceRayisResult in class AutoTraceRaypublic javax.vecmath.Vector3d getHitNormal()
AutoTraceRaygetHitNormal in class AutoTraceRaypublic Location getHitLocation()
AutoTraceRaygetHitLocation in class AutoTraceRaypublic boolean isTraceActors()
AutoTraceRayisTraceActors in class AutoTraceRaypublic UnrealId getHitId()
AutoTraceRaygetHitId in class AutoTraceRaypublic AutoTraceRayLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic AutoTraceRayShared getShared()
getShared in interface ICompositeWorldObjectpublic AutoTraceRayStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class AutoTraceRaypublic String toHtmlString()
toHtmlString in class AutoTraceRayCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.