|
||||||||||
| 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.udk.communication.messages.GBEvent
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.HearNoise
public class HearNoise
Asynchronous message. Maybe another player walking or shooting, maybe a bullet hitting the floor or just a nearby lift going up or down. Corresponding GameBots message is HRN.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
|---|
getWorldEvent |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| 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 UnrealId Source
protected String Type
protected Rotation Rotation
| Constructor Detail |
|---|
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()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||