|
||||||||||
| 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.VehicleCompositeImpl
public class VehicleCompositeImpl
Composite implementation of the VEH abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
Vehicle.ObjectDisappeared, Vehicle.VehicleUpdate |
| Field Summary | |
|---|---|
protected VehicleLocalImpl |
partLocal
|
protected VehicleStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Vehicle |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
VehicleCompositeImpl()
Parameter-less contructor for the message. |
|
VehicleCompositeImpl(VehicleCompositeImpl original)
Cloning constructor. |
|
VehicleCompositeImpl(VehicleLocalImpl partLocal,
VehicleSharedImpl partShared,
VehicleStaticImpl partStatic)
Composite-impl constructor. |
|
| 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()
|
Location |
getLocation()
An absolute location of the vehicle within the map. |
Rotation |
getRotation()
Which direction the vehicle is facing in absolute terms. |
VehicleShared |
getShared()
|
VehicleStatic |
getStatic()
|
Integer |
getTeam()
What team the vehicle is on. |
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. |
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.Vehicle |
|---|
createDisappearEvent, getSimTime, toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected VehicleStaticImpl partStatic
protected VehicleLocalImpl partLocal
| Constructor Detail |
|---|
public VehicleCompositeImpl()
public VehicleCompositeImpl(VehicleLocalImpl partLocal,
VehicleSharedImpl partShared,
VehicleStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic VehicleCompositeImpl(VehicleCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
Vehicle
setSimTime in class Vehiclepublic VehicleStatic getStatic()
public VehicleLocal getLocal()
public VehicleShared getShared()
public UnrealId getId()
Vehicle
getId in interface IWorldObjectgetId 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 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 | |||||||||