public class HearPickup 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 pickuped actor
|
protected UnrealId |
Source
Unique Id of an object picked up.
|
protected String |
Type
Class of the picked up actor.
|
| Constructor and Description |
|---|
HearPickup()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
HearPickup(HearPickup original)
Cloning constructor.
|
HearPickup(UnrealId Source,
String Type,
Rotation Rotation)
Creates new instance of command HearPickup.
|
| Modifier and Type | Method and Description |
|---|---|
Rotation |
getRotation()
How should bot rotate if it would like to be in the
direction of the pickuped actor
|
long |
getSimTime() |
UnrealId |
getSource()
Unique Id of an object picked up.
|
String |
getType()
Class of the picked up actor.
|
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Source
protected String Type
protected Rotation Rotation
public HearPickup(UnrealId Source, String Type, Rotation Rotation)
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 actorpublic HearPickup(HearPickup original)
public HearPickup()
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.