|
||||||||||
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.ut2004.communication.messages.gbinfomessages.HearPickup
public class HearPickup
Definition of the event HRP.
Complete message documentation: Synchronous message - sent in synchronous batch (events are cached and then exported in the batch due to performance issues). You hear someone pick up an object from the ground. If the very same sound is exported repeatedly (same sound, same source), it won't be exported more than once per second.
Field Summary | |
---|---|
protected double |
Distance
How far the noise source is. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Rotation |
Rotation
How should bot rotate if it would like to be in the direction of the pickuped actor |
protected long |
SimTime
|
protected UnrealId |
Source
Unique Id of an object picked up. |
protected String |
Type
Class of the picked up actor. |
Constructor Summary | |
---|---|
HearPickup()
Parameter-less contructor for the message. |
|
HearPickup(HearPickup original)
Cloning constructor from the full message. |
|
HearPickup(UnrealId Source,
String Type,
Rotation Rotation,
double Distance)
Creates new instance of the message HearPickup. |
Method Summary | |
---|---|
double |
getDistance()
How far the noise source is. |
Rotation |
getRotation()
How should bot rotate if it would like to be in the direction of the pickuped actor |
long |
getSimTime()
Simulation time in MILLI SECONDS !!! |
UnrealId |
getSource()
Unique Id of an object picked up. |
String |
getType()
Class of the picked up actor. |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toJsonLiteral()
|
String |
toString()
|
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 long SimTime
protected UnrealId Source
protected String Type
protected Rotation Rotation
protected double Distance
Constructor Detail |
---|
public HearPickup()
public HearPickup(UnrealId Source, String Type, Rotation Rotation, double Distance)
Source
- Unique Id of an object picked up.Type
- Class of the picked up actor.Rotation
- How should bot rotate if it would like to be in the
direction of the pickuped actorDistance
- How far the noise source is.public HearPickup(HearPickup original)
original
- Method Detail |
---|
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getSource()
public String getType()
public Rotation getRotation()
public double getDistance()
public String toString()
toString
in class InfoMessage
public String toHtmlString()
public String toJsonLiteral()
toJsonLiteral
in class InfoMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |