public class HearNoise extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
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 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()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
HearNoise(HearNoise original)
Cloning constructor.
|
HearNoise(UnrealId Source,
String Type,
Rotation Rotation)
Creates new instance of command HearNoise.
|
| Modifier and Type | Method and Description |
|---|---|
Rotation |
getRotation()
How should bot rotate if it would like to be in the
direction of the "noisy" actor.
|
long |
getSimTime() |
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...
|
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Source
protected String Type
protected Rotation Rotation
public HearNoise(UnrealId Source, 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)
public HearNoise()
public UnrealId getSource()
public String getType()
public Rotation getRotation()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.