|
|||||||||
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.AutoTraceRayLocal cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayMessage.AutoTraceRayLocalMessage
public class AutoTraceRayMessage.AutoTraceRayLocalMessage
Implementation of the local part of the GameBots2004 message ATR, used to facade ATRMessage.
Complete message documentation: Synchronous message. Contains the results of automatically casted rays. One ATR message is for one casted ray. New automatically casted rays can be defined by ADDRAY command and removed by REMOVERAY command.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayLocal |
---|
SimTime |
Constructor Summary | |
---|---|
AutoTraceRayMessage.AutoTraceRayLocalMessage()
|
Method Summary | |
---|---|
AutoTraceRayMessage.AutoTraceRayLocalMessage |
clone()
|
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). |
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. |
AutoTraceRayMessage.AutoTraceRayLocalMessage |
getLocal()
|
ISharedWorldObject |
getShared()
|
IStaticWorldObject |
getStatic()
|
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) |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayLocal |
---|
getCompositeClass, getSimTime, setSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoTraceRayMessage.AutoTraceRayLocalMessage()
Method Detail |
---|
public AutoTraceRayMessage.AutoTraceRayLocalMessage clone()
clone
in interface ILocalWorldObject
clone
in class AutoTraceRayLocal
public AutoTraceRayMessage.AutoTraceRayLocalMessage getLocal()
getLocal
in class AutoTraceRayLocal
public ISharedWorldObject getShared()
getShared
in class AutoTraceRayLocal
public IStaticWorldObject getStatic()
getStatic
in class AutoTraceRayLocal
public UnrealId getId()
getId
in interface IWorldObject
getId
in class AutoTraceRayLocal
public Location getFrom()
getFrom
in class AutoTraceRayLocal
public Location getTo()
getTo
in class AutoTraceRayLocal
public boolean isFastTrace()
isFastTrace
in class AutoTraceRayLocal
public boolean isFloorCorrection()
isFloorCorrection
in class AutoTraceRayLocal
public boolean isResult()
isResult
in class AutoTraceRayLocal
public Vector3d getHitNormal()
getHitNormal
in class AutoTraceRayLocal
public Location getHitLocation()
getHitLocation
in class AutoTraceRayLocal
public boolean isTraceActors()
isTraceActors
in class AutoTraceRayLocal
public UnrealId getHitId()
getHitId
in class AutoTraceRayLocal
public java.lang.String toString()
toString
in class AutoTraceRayLocal
public java.lang.String toHtmlString()
toHtmlString
in class AutoTraceRayLocal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |