|
||||||||||
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.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 Vehicle
public VehicleStatic getStatic()
public VehicleLocal getLocal()
public VehicleShared getShared()
public UnrealId getId()
Vehicle
getId
in interface IWorldObject
getId
in class Vehicle
public Rotation getRotation()
Vehicle
getRotation
in interface IRotable
getRotation
in class Vehicle
public Location getLocation()
Vehicle
getLocation
in interface ILocated
getLocation
in class Vehicle
public Velocity getVelocity()
Vehicle
getVelocity
in interface ILocomotive
getVelocity
in class Vehicle
public boolean isVisible()
Vehicle
isVisible
in interface IViewable
isVisible
in class Vehicle
public Integer getTeam()
Vehicle
getTeam
in class Vehicle
public Integer getHealth()
Vehicle
getHealth
in class Vehicle
public Integer getArmor()
Vehicle
getArmor
in class Vehicle
public UnrealId getDriver()
Vehicle
getDriver
in class Vehicle
public boolean isTeamLocked()
Vehicle
isTeamLocked
in class Vehicle
public String getType()
Vehicle
getType
in class Vehicle
public String toString()
toString
in class Vehicle
public String toHtmlString()
toHtmlString
in class Vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |