|
||||||||||
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.VehicleSharedImpl
public class VehicleSharedImpl
Implementation of the shared part of the GameBots2004 message VEH.
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.
Nested Class Summary | |
---|---|
static class |
VehicleSharedImpl.VehicleSharedUpdate
|
Field Summary | |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Unique Id of the vehicle or vehicle part. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty |
myArmor
How much the vehicle has left. |
protected UnrealIdProperty |
myDriver
Unique Id of the driver - if any. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty |
myHealth
How much health the vehicle has left. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.LocationProperty |
myLocation
An absolute location of the vehicle within the map. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.RotationProperty |
myRotation
Which direction the vehicle is facing in absolute terms. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty |
myTeam
What team the vehicle is on. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.BooleanProperty |
myTeamLocked
If the vehicle is locked just for its current team. |
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.VelocityProperty |
myVelocity
Absolute velocity of the vehicle as a vector of movement per one game second. |
protected HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.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 | |
---|---|
VehicleSharedImpl(VehicleSharedImpl source)
|
|
VehicleSharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId,
Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties)
|
Method Summary | |
---|---|
VehicleSharedImpl |
clone()
|
Integer |
getArmor()
How much the vehicle has left. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getDriver()
Unique Id of the driver - if any. |
Integer |
getHealth()
How much health the vehicle has left. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Unique Id of the vehicle or vehicle part. |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
An absolute location of the vehicle within the map. |
Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> |
getProperties()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty |
getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id)
|
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms. |
Integer |
getTeam()
What team the vehicle is on. |
cz.cuni.amis.pogamut.base3d.worldview.object.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()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleShared |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> propertyMap
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.RotationProperty myRotation
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.LocationProperty myLocation
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.VelocityProperty myVelocity
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty myTeam
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty myHealth
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty myArmor
protected UnrealIdProperty myDriver
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.BooleanProperty myTeamLocked
Constructor Detail |
---|
public VehicleSharedImpl(VehicleSharedImpl source)
public VehicleSharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId, Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties)
Method Detail |
---|
public void setSimTime(long SimTime)
VehicleShared
setSimTime
in class VehicleShared
public VehicleSharedImpl clone()
clone
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject
clone
in class VehicleShared
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id)
public Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> getProperties()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in class VehicleShared
public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
getRotation
in interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotable
getRotation
in class VehicleShared
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
getLocation
in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated
getLocation
in class VehicleShared
public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
getVelocity
in interface cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.unreal.communication.messages.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |