cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class HearPickup

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.HearPickup
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, Event

public class HearPickup
extends InfoMessage
implements IWorldEvent, IWorldChangeEvent

Definition of the event HRP.

Complete message documentation: Asynchronous message. You hear someone pick up an object from the ground.


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 pickuped actor
protected  long SimTime
           
protected  UnrealId Source
          Unique Id of an object picked up.
protected  java.lang.String Type
          Class of the picked up actor.
 
Constructor Summary
HearPickup()
          Parameter-less contructor for the message.
HearPickup(HearPickup original)
          Cloning constructor from the full message.
HearPickup(UnrealId Source, java.lang.String Type, Rotation Rotation)
          Creates new instance of the message HearPickup.
 
Method Summary
 Rotation getRotation()
          How should bot rotate if it would like to be in the direction of the pickuped actor
 long getSimTime()
          Returns the simulation time when the event has occurred.
 UnrealId getSource()
          Unique Id of an object picked up.
 java.lang.String getType()
          Class of the picked up actor.
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

PROTOTYPE

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

See Also:
Constant Field Values

SimTime

protected long SimTime

Source

protected UnrealId Source
Unique Id of an object picked up.


Type

protected java.lang.String Type
Class of the picked up actor.


Rotation

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

Constructor Detail

HearPickup

public HearPickup()
Parameter-less contructor for the message.


HearPickup

public HearPickup(UnrealId Source,
                  java.lang.String Type,
                  Rotation Rotation)
Creates new instance of the message HearPickup. Asynchronous message. You hear someone pick up an object from the ground. Corresponding GameBots message is HRP.

Parameters:
Source - Unique Id of an object picked up.
Type - Class of the picked up actor.
Rotation - How should bot rotate if it would like to be in the direction of the pickuped actor

HearPickup

public HearPickup(HearPickup original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

getSimTime

public long getSimTime()
Description copied from interface: IWorldEvent
Returns the simulation time when the event has occurred.

Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Returns:
timestamp

setSimTime

protected void setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.


getSource

public UnrealId getSource()
Unique Id of an object picked up.


getType

public java.lang.String getType()
Class of the picked up actor.


getRotation

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


toString

public java.lang.String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public java.lang.String toHtmlString()