|
||||||||||
| 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.LocationUpdate
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateCompositeImpl
public class LocationUpdateCompositeImpl
Composite implementation of the UPD abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: "Synchronous" message. Arrives outside sync. batch. The frequency of this message is configured through locUpdateMultiplier variable in GameBots2004.ini file. It gets exported N times faster than regular sync. batch where N equals locUpdateMultiplier. Holds information about Location, Velocity and Rotation of the bot and should help us to create more robust navigation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdate |
|---|
LocationUpdate.LocationUpdateUpdate |
| Field Summary | |
|---|---|
protected LocationUpdateLocalImpl |
partLocal
|
protected LocationUpdateStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdate |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
LocationUpdateCompositeImpl()
Parameter-less contructor for the message. |
|
LocationUpdateCompositeImpl(LocationUpdateCompositeImpl original)
Cloning constructor. |
|
LocationUpdateCompositeImpl(LocationUpdateLocalImpl partLocal,
LocationUpdateSharedImpl partShared,
LocationUpdateStaticImpl partStatic)
Composite-impl constructor. |
|
| Method Summary | |
|---|---|
UnrealId |
getId()
Unique Id of this update message instance. |
Location |
getLoc()
An absolute location of the bot. |
LocationUpdateLocal |
getLocal()
|
Rotation |
getRot()
Which direction the bot is facing in absolute terms. |
LocationUpdateShared |
getShared()
|
LocationUpdateStatic |
getStatic()
|
Velocity |
getVel()
Absolute velocity of the bot as a vector of movement per one game second. |
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.LocationUpdate |
|---|
getSimTime, toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LocationUpdateStaticImpl partStatic
protected LocationUpdateLocalImpl partLocal
| Constructor Detail |
|---|
public LocationUpdateCompositeImpl()
public LocationUpdateCompositeImpl(LocationUpdateLocalImpl partLocal,
LocationUpdateSharedImpl partShared,
LocationUpdateStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic LocationUpdateCompositeImpl(LocationUpdateCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
LocationUpdate
setSimTime in class LocationUpdatepublic LocationUpdateStatic getStatic()
public LocationUpdateLocal getLocal()
public LocationUpdateShared getShared()
public UnrealId getId()
LocationUpdate
getId in interface IWorldObjectgetId in class LocationUpdatepublic Location getLoc()
LocationUpdate
getLoc in class LocationUpdatepublic Velocity getVel()
LocationUpdate
getVel in class LocationUpdatepublic Rotation getRot()
LocationUpdate
getRot in class LocationUpdatepublic String toString()
toString in class LocationUpdatepublic String toHtmlString()
toHtmlString in class LocationUpdate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||