public class LockedVehicle extends GBEvent implements IWorldEvent, IWorldChangeEvent
Modifier and Type | Field and Description |
---|---|
protected UnrealId |
Id
Id of the vehicle, which we cannot enter, because it is locked.
|
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 we wanted to enter.
|
Constructor and Description |
---|
LockedVehicle()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
LockedVehicle(LockedVehicle original)
Cloning constructor.
|
LockedVehicle(UnrealId Id,
String Type,
Location Location)
Creates new instance of command LockedVehicle.
|
Modifier and Type | Method and Description |
---|---|
UnrealId |
getId()
Id of the vehicle, which we cannot enter, because it is locked.
|
Location |
getLocation()
Location of the vehicle.
|
long |
getSimTime() |
String |
getType()
Type of the vehicle we wanted to enter.
|
String |
toHtmlString() |
String |
toString() |
getWorldEvent
toJsonLiteral
public static final String PROTOTYPE
protected UnrealId Id
protected String Type
protected Location Location
public LockedVehicle(UnrealId Id, String Type, Location Location)
Id
- Id of the vehicle, which we cannot enter, because it is locked.Type
- Type of the vehicle we wanted to enter. What kind of turret or car.Location
- Location of the vehicle.public LockedVehicle(LockedVehicle original)
public LockedVehicle()
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.