cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages
Class HearNoise

Package class diagram package HearNoise
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
          extended by cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.HearNoise
All Implemented Interfaces:
IWorldChangeEvent, IWorldEventWrapper, IWorldEvent, IGBWorldEvent, cz.cuni.amis.utils.listener.Event

public class HearNoise
extends GBEvent
implements IWorldEvent, IWorldChangeEvent

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

PROTOTYPE

public static final String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Source

protected UnrealId Source
Unique ID of actor making the noise - may be other player or some other object in the game.


Type

protected String Type
What class this actor is - item, projectile, player...


Rotation

protected Rotation Rotation
How should bot rotate if it would like to be in the direction of the "noisy" actor.

Constructor Detail

HearNoise

public HearNoise(UnrealId Source,
                 String Type,
                 Rotation Rotation)
Creates new instance of command 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 for this command is .

Parameters:
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.

HearNoise

public HearNoise(HearNoise original)
Cloning constructor.


HearNoise

public HearNoise()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).

Method Detail

getSource

public UnrealId getSource()
Unique ID of actor making the noise - may be other player or some other object in the game.


getType

public String getType()
What class this actor is - item, projectile, player...


getRotation

public Rotation getRotation()
How should bot rotate if it would like to be in the direction of the "noisy" actor.


getSimTime

public long getSimTime()
Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Overrides:
getSimTime in class GBEvent

toString

public String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public String toHtmlString()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.