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, toJsonLiteral
protected 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)
Vehicle
setSimTime
in class Vehicle
public VehicleStatic getStatic()
public VehicleLocal getLocal()
public VehicleShared getShared()
public UnrealId getId()
Vehicle
getId
in interface IWorldObject
getId
in class Vehicle
public Rotation getRotation()
Vehicle
getRotation
in interface IRotable
getRotation
in class Vehicle
public Location getLocation()
Vehicle
getLocation
in interface ILocated
getLocation
in class Vehicle
public Velocity getVelocity()
Vehicle
getVelocity
in interface ILocomotive
getVelocity
in class Vehicle
public boolean isVisible()
Vehicle
public Integer getTeam()
Vehicle
public Integer getHealth()
Vehicle
public Integer getArmor()
Vehicle
public UnrealId getDriver()
Vehicle
public boolean isTeamLocked()
Vehicle
isTeamLocked
in class Vehicle
public String getType()
Vehicle
public String toHtmlString()
toHtmlString
in class Vehicle
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.