public class VehicleSharedImpl extends VehicleShared
Modifier and Type | Class and Description |
---|---|
static class |
VehicleSharedImpl.VehicleSharedUpdate |
Modifier and Type | Field and Description |
---|---|
protected UnrealId |
Id
Unique Id of the vehicle or vehicle part.
|
protected IntegerProperty |
myArmor
How much the vehicle has left.
|
protected UnrealIdProperty |
myDriver
Unique Id of the driver - if any.
|
protected IntegerProperty |
myHealth
How much health the vehicle has left.
|
protected LocationProperty |
myLocation
An absolute location of the vehicle within the map.
|
protected RotationProperty |
myRotation
Which direction the vehicle is facing in absolute terms.
|
protected IntegerProperty |
myTeam
What team the vehicle is on.
|
protected BooleanProperty |
myTeamLocked
If the vehicle is locked just for its current team.
|
protected VelocityProperty |
myVelocity
Absolute velocity of the vehicle as a vector of movement per one
game second.
|
protected HashMap<PropertyId,ISharedProperty> |
propertyMap |
ArmorPropertyToken, DriverPropertyToken, HealthPropertyToken, LocationPropertyToken, RotationPropertyToken, SharedPropertyTokens, SimTime, TeamLockedPropertyToken, TeamPropertyToken, VelocityPropertyToken
Constructor and Description |
---|
VehicleSharedImpl(VehicleSharedImpl source) |
VehicleSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties) |
Modifier and Type | Method and Description |
---|---|
VehicleSharedImpl |
clone() |
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.
|
Location |
getLocation()
An absolute location of the vehicle within the map.
|
Map<PropertyId,ISharedProperty> |
getProperties() |
ISharedProperty |
getProperty(PropertyId id) |
Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms.
|
Integer |
getTeam()
What team the vehicle is on.
|
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.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTime
toJsonLiteral
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected RotationProperty myRotation
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected IntegerProperty myTeam
protected IntegerProperty myHealth
protected IntegerProperty myArmor
protected UnrealIdProperty myDriver
protected BooleanProperty myTeamLocked
public VehicleSharedImpl(VehicleSharedImpl source)
public VehicleSharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
public void setSimTime(long SimTime)
VehicleShared
setSimTime
in class VehicleShared
public VehicleSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class VehicleShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class VehicleShared
public Rotation getRotation()
getRotation
in interface IRotable
getRotation
in class VehicleShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class VehicleShared
public Velocity getVelocity()
getVelocity
in interface ILocomotive
getVelocity
in class VehicleShared
public Integer getTeam()
getTeam
in class VehicleShared
public Integer getHealth()
getHealth
in class VehicleShared
public Integer getArmor()
getArmor
in class VehicleShared
public UnrealId getDriver()
getDriver
in class VehicleShared
public boolean isTeamLocked()
isTeamLocked
in class VehicleShared
public String toString()
toString
in class VehicleShared
public String toHtmlString()
toHtmlString
in class VehicleShared
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.