|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleMessage
public class VehicleMessage
Implementation of the GameBots2004 message VEH contains also its Local/Shared/Static subpart class definitions..
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 | |
|---|---|
class |
VehicleMessage.VehicleLocalMessage
Implementation of the local part of the GameBots2004 message VEH, used to facade VEHMessage. |
class |
VehicleMessage.VehicleSharedMessage
Implementation of the shared part of the GameBots2004 message VEH, used to facade VEHMessage. |
class |
VehicleMessage.VehicleStaticMessage
Implementation of the static part of the GameBots2004 message VEH, used to facade VEHMessage. |
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
Vehicle.ObjectDisappeared, Vehicle.VehicleUpdate |
| Field Summary | |
|---|---|
protected Integer |
Armor
How much the vehicle has left. |
protected boolean |
Armor_Set
Whether property 'Armor' was received from GB2004. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Driver
Unique Id of the driver - if any. |
protected boolean |
Driver_Set
Whether property 'Driver' was received from GB2004. |
protected Integer |
Health
How much health the vehicle has left. |
protected boolean |
Health_Set
Whether property 'Health' was received from GB2004. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Unique Id of the vehicle or vehicle part. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
Location
An absolute location of the vehicle within the map. |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
Rotation
Which direction the vehicle is facing in absolute terms. |
protected boolean |
Rotation_Set
Whether property 'Rotation' was received from GB2004. |
protected Integer |
Team
What team the vehicle is on. |
protected boolean |
Team_Set
Whether property 'Team' was received from GB2004. |
protected cz.cuni.amis.pogamut.multi.agent.ITeamId |
TeamId
|
protected boolean |
TeamLocked
If the vehicle is locked just for its current team. |
protected boolean |
TeamLocked_Set
Whether property 'TeamLocked' was received from GB2004. |
protected String |
Type
Class of the vehicle. |
protected boolean |
Type_Set
Whether property 'Type' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
Velocity
Absolute velocity of the vehicle as a vector of movement per one game second. |
protected boolean |
Velocity_Set
Whether property 'Velocity' was received from GB2004. |
protected boolean |
Visible
If the vehicle is in the field of view of the bot. |
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
VehicleMessage()
Parameter-less contructor for the message. |
|
VehicleMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity,
boolean Visible,
Integer Team,
Integer Health,
Integer Armor,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Driver,
boolean TeamLocked,
String Type)
Creates new instance of the message Vehicle. |
|
VehicleMessage(VehicleMessage original)
Cloning constructor from the full message. |
|
| Method Summary | |
|---|---|
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. |
VehicleLocal |
getLocal()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
An absolute location of the vehicle within the map. |
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms. |
VehicleShared |
getShared()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
VehicleStatic |
getStatic()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
Integer |
getTeam()
What team the vehicle is on. |
cz.cuni.amis.pogamut.multi.agent.ITeamId |
getTeamId()
|
String |
getType()
Class of the vehicle. |
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. |
boolean |
isVisible()
If the vehicle is in the field of view of the bot. |
protected void |
setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
createDisappearEvent, getSimTime, setSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
|---|
getSimTime |
| Field Detail |
|---|
protected cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected boolean Id_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
protected boolean Rotation_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
protected boolean Location_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
protected boolean Velocity_Set
protected boolean Visible
protected boolean Visible_Set
protected Integer Team
protected boolean Team_Set
protected Integer Health
protected boolean Health_Set
protected Integer Armor
protected boolean Armor_Set
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Driver
protected boolean Driver_Set
protected boolean TeamLocked
protected boolean TeamLocked_Set
protected String Type
protected boolean Type_Set
| Constructor Detail |
|---|
public VehicleMessage()
public VehicleMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity,
boolean Visible,
Integer Team,
Integer Health,
Integer Armor,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Driver,
boolean TeamLocked,
String Type)
Id - Unique Id of the vehicle or vehicle part.Rotation - Which direction the vehicle is facing in absolute terms.Location - An absolute location of the vehicle within the map.Velocity - Absolute velocity of the vehicle as a vector of movement per one
game second.Visible - If the vehicle is in the field of view of the bot.Team - What team the vehicle is on. 255 is no team. 0-3 are red,
blue, green, gold in that order.Health - How much health the vehicle has left. Ranges from 0 to x, depending on the vehicle type.Armor - How much the vehicle has left. Note: This may be 0 all the time. Maybe the vehicles are not supporting armor.Driver - Unique Id of the driver - if any.TeamLocked - If the vehicle is locked just for its current team.Type - Class of the vehicle. If it is a car, turret etc.public VehicleMessage(VehicleMessage original)
original - | Method Detail |
|---|
protected void setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
public cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Vehicle
getId in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventgetId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectgetId in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEventgetId in class Vehiclepublic cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
Vehicle
getRotation in interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotablegetRotation in class Vehiclepublic cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Vehicle
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocatedgetLocation in class Vehiclepublic cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
Vehicle
getVelocity in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotivegetVelocity in class Vehiclepublic boolean isVisible()
Vehicle
isVisible in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewableisVisible in class Vehiclepublic Integer getTeam()
Vehicle
getTeam in class Vehiclepublic Integer getHealth()
Vehicle
getHealth in class Vehiclepublic Integer getArmor()
Vehicle
getArmor in class Vehiclepublic cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getDriver()
Vehicle
getDriver in class Vehiclepublic boolean isTeamLocked()
Vehicle
isTeamLocked in class Vehiclepublic String getType()
Vehicle
getType in class Vehiclepublic VehicleLocal getLocal()
getLocal in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic VehicleShared getShared()
getShared in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic VehicleStatic getStatic()
getStatic in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
update in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class Vehiclepublic String toHtmlString()
toHtmlString in class Vehicle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||