public class EnteredVehicle extends GBEvent implements IWorldEvent, IWorldChangeEvent
Modifier and Type | Field and Description |
---|---|
protected UnrealId |
Id
Id of the vehicle entered.
|
protected Location |
Location
Location of the vehicle.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
Type
Type of the vehicle entered.
|
Constructor and Description |
---|
EnteredVehicle()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
EnteredVehicle(EnteredVehicle original)
Cloning constructor.
|
EnteredVehicle(UnrealId Id,
String Type,
Location Location)
Creates new instance of command EnteredVehicle.
|
Modifier and Type | Method and Description |
---|---|
UnrealId |
getId()
Id of the vehicle entered.
|
Location |
getLocation()
Location of the vehicle.
|
long |
getSimTime() |
String |
getType()
Type of the vehicle entered.
|
String |
toHtmlString() |
String |
toString() |
getWorldEvent
toJsonLiteral
public static final String PROTOTYPE
protected UnrealId Id
protected String Type
protected Location Location
public EnteredVehicle(UnrealId Id, String Type, Location Location)
Id
- Id of the vehicle entered.Type
- Type of the vehicle entered. What kind of turret or car.Location
- Location of the vehicle.public EnteredVehicle(EnteredVehicle original)
public EnteredVehicle()
public UnrealId getId()
public String getType()
public Location getLocation()
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in class GBEvent
public String toString()
toString
in class InfoMessage
public String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.