|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleMessage.VehicleSharedMessage
public class VehicleMessage.VehicleSharedMessage
Implementation of the shared part of the GameBots2004 message VEH, used to facade VEHMessage.
Complete message documentation: Synchronous message. Holds vehicles we see. Id for vehicles doesn't work, so this message is without Id. We can join vehicles by ENTER command if we are close enough - ussually 100 ut units or less. Note: Vehicle support is in aplha testing right now.
Field Summary | |
---|---|
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 java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleShared |
---|
ArmorPropertyToken, DriverPropertyToken, HealthPropertyToken, LocationPropertyToken, RotationPropertyToken, SharedPropertyTokens, SimTime, TeamLockedPropertyToken, TeamPropertyToken, VelocityPropertyToken |
Constructor Summary | |
---|---|
VehicleMessage.VehicleSharedMessage()
|
Method Summary | |
---|---|
VehicleMessage.VehicleSharedMessage |
clone()
|
java.lang.Integer |
getArmor()
How much the vehicle has left. |
UnrealId |
getDriver()
Unique Id of the driver - if any. |
java.lang.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. |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms. |
java.lang.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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleShared |
---|
getCompositeClass, getSimTime, setSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
protected RotationProperty myRotation
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected IntegerProperty myTeam
protected IntegerProperty myHealth
protected IntegerProperty myArmor
protected UnrealIdProperty myDriver
protected BooleanProperty myTeamLocked
Constructor Detail |
---|
public VehicleMessage.VehicleSharedMessage()
Method Detail |
---|
public VehicleMessage.VehicleSharedMessage clone()
clone
in interface ISharedWorldObject
clone
in class VehicleShared
public ISharedProperty getProperty(PropertyId id)
public java.util.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 java.lang.Integer getTeam()
getTeam
in class VehicleShared
public java.lang.Integer getHealth()
getHealth
in class VehicleShared
public java.lang.Integer getArmor()
getArmor
in class VehicleShared
public UnrealId getDriver()
getDriver
in class VehicleShared
public boolean isTeamLocked()
isTeamLocked
in class VehicleShared
public java.lang.String toString()
toString
in class VehicleShared
public java.lang.String toHtmlString()
toHtmlString
in class VehicleShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |