public class HearNoise extends InfoMessage implements IWorldEvent, IWorldChangeEvent
Modifier and Type | Field and Description |
---|---|
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 "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 String |
Type
What class this actor is - item, projectile, player...
|
Constructor and Description |
---|
HearNoise()
Parameter-less contructor for the message.
|
HearNoise(HearNoise original)
Cloning constructor from the full message.
|
HearNoise(UnrealId Source,
String Type,
Rotation Rotation,
double Distance)
Creates new instance of the message HearNoise.
|
Modifier and Type | Method and Description |
---|---|
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 "noisy" actor.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
UnrealId |
getSource()
Unique ID of actor making the noise - may be other player or
some other object in the game.
|
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.
|
String |
toHtmlString() |
String |
toJsonLiteral() |
String |
toString() |
public static final String PROTOTYPE
protected long SimTime
protected UnrealId Source
protected String Type
protected Rotation Rotation
protected double Distance
public HearNoise()
public HearNoise(UnrealId Source, String Type, Rotation Rotation, double Distance)
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.Distance
- How far the noise source is.public HearNoise(HearNoise original)
original
- 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
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.