|
||||||||||
| 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 |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected Integer |
Armor
How much the vehicle has left. |
protected boolean |
Armor_Set
Whether property 'Armor' was received from GB2004. |
protected 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 UnrealId |
Id
Unique Id of the vehicle or vehicle part. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected Location |
Location
An absolute location of the vehicle within the map. |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected 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. 255 is no team. 0-3 are red, blue, green, gold in that order. |
protected boolean |
Team_Set
Whether property 'Team' was received from GB2004. |
protected 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 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(UnrealId Id,
Rotation Rotation,
Location Location,
Velocity Velocity,
boolean Visible,
Integer Team,
Integer Health,
Integer Armor,
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. |
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()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Location |
getLocation()
An absolute location of the vehicle within the map. |
Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms. |
VehicleShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
VehicleStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
Integer |
getTeam()
What team the vehicle is on. 255 is no team. 0-3 are red, blue, green, gold in that order. |
ITeamId |
getTeamId()
|
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. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
| 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 ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected Rotation Rotation
protected boolean Rotation_Set
protected Location Location
protected boolean Location_Set
protected 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 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(UnrealId Id,
Rotation Rotation,
Location Location,
Velocity Velocity,
boolean Visible,
Integer Team,
Integer Health,
Integer Armor,
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(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
Vehicle
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class Vehiclepublic Rotation getRotation()
Vehicle
getRotation in interface IRotablegetRotation in class Vehiclepublic Location getLocation()
Vehicle
getLocation in interface ILocatedgetLocation in class Vehiclepublic Velocity getVelocity()
Vehicle
getVelocity in interface ILocomotivegetVelocity in class Vehiclepublic boolean isVisible()
Vehicle
isVisible in interface 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 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 ICompositeWorldObjectpublic VehicleShared getShared()
getShared in interface ICompositeWorldObjectpublic VehicleStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface 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 | |||||||||