|
|||||||||
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.HearNoise
public class HearNoise
Definition of the event HRN.
Complete message documentation: Asynchronous message. Maybe another player walking or shooting, maybe a bullet hitting the floor or just a nearby lift going up or down.
Field Summary | |
---|---|
static java.lang.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 "noisy" actor. |
protected long |
SimTime
|
protected UnrealId |
Source
Unique ID of actor making the noise - may be other player or some other object in the game. |
protected java.lang.String |
Type
What class this actor is - item, projectile, player... |
Constructor Summary | |
---|---|
HearNoise()
Parameter-less contructor for the message. |
|
HearNoise(HearNoise original)
Cloning constructor from the full message. |
|
HearNoise(UnrealId Source,
java.lang.String Type,
Rotation Rotation)
Creates new instance of the message HearNoise. |
Method Summary | |
---|---|
Rotation |
getRotation()
How should bot rotate if it would like to be in the direction of the "noisy" actor. |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
UnrealId |
getSource()
Unique ID of actor making the noise - may be other player or some other object in the game. |
java.lang.String |
getType()
What class this actor is - item, projectile, player... |
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 UnrealId Source
protected java.lang.String Type
protected Rotation Rotation
Constructor Detail |
---|
public HearNoise()
public HearNoise(UnrealId Source, java.lang.String Type, Rotation Rotation)
Source
- Unique ID of actor making the noise - may be other player or
some other object in the game.Type
- What class this actor is - item, projectile, player...Rotation
- How should bot rotate if it would like to be in the
direction of the "noisy" actor.public HearNoise(HearNoise original)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getSource()
public java.lang.String getType()
public Rotation getRotation()
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 |