public class VehicleCompositeImpl extends Vehicle
Vehicle.ObjectDisappeared, Vehicle.VehicleUpdate| Modifier and Type | Field and Description |
|---|---|
protected VehicleLocalImpl |
partLocal |
protected VehicleStaticImpl |
partStatic |
| Constructor and Description |
|---|
VehicleCompositeImpl()
Parameter-less contructor for the message.
|
VehicleCompositeImpl(VehicleCompositeImpl original)
Cloning constructor.
|
VehicleCompositeImpl(VehicleLocalImpl partLocal,
VehicleSharedImpl partShared,
VehicleStaticImpl partStatic)
Composite-impl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getArmor()
How much the vehicle has left.
|
UnrealId |
getDriver()
Unique Id of the driver - if any.
|
Integer |
getHealth()
How much health the vehicle has left.
|
UnrealId |
getId()
Unique Id of the vehicle or vehicle part.
|
VehicleLocal |
getLocal() |
Location |
getLocation()
An absolute location of the vehicle within the map.
|
Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms.
|
VehicleShared |
getShared() |
VehicleStatic |
getStatic() |
Integer |
getTeam()
What team the vehicle is on.
|
String |
getType()
Class of the vehicle.
|
Velocity |
getVelocity()
Absolute velocity of the vehicle as a vector of movement per one
game second.
|
boolean |
isTeamLocked()
If the vehicle is locked just for its current team.
|
boolean |
isVisible()
If the vehicle is in the field of view of the bot.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
createDisappearEvent, getSimTime, toJsonLiteralprotected VehicleStaticImpl partStatic
protected VehicleLocalImpl partLocal
public VehicleCompositeImpl()
public VehicleCompositeImpl(VehicleLocalImpl partLocal, VehicleSharedImpl partShared, VehicleStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic VehicleCompositeImpl(VehicleCompositeImpl original)
original - public void setSimTime(long SimTime)
VehiclesetSimTime in class Vehiclepublic VehicleStatic getStatic()
public VehicleLocal getLocal()
public VehicleShared getShared()
public UnrealId getId()
VehiclegetId in interface IWorldObjectgetId in class Vehiclepublic Rotation getRotation()
VehiclegetRotation in interface IRotablegetRotation in class Vehiclepublic Location getLocation()
VehiclegetLocation in interface ILocatedgetLocation in class Vehiclepublic Velocity getVelocity()
VehiclegetVelocity in interface ILocomotivegetVelocity in class Vehiclepublic boolean isVisible()
Vehiclepublic Integer getTeam()
Vehiclepublic Integer getHealth()
Vehiclepublic Integer getArmor()
Vehiclepublic UnrealId getDriver()
Vehiclepublic boolean isTeamLocked()
VehicleisTeamLocked in class Vehiclepublic String getType()
Vehiclepublic String toHtmlString()
toHtmlString in class VehicleCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.