|
||||||||||
| 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.LocationUpdateMessage
public class LocationUpdateMessage
Implementation of the GameBots2004 message UPD contains also its Local/Shared/Static subpart class definitions..
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 | |
|---|---|
class |
LocationUpdateMessage.LocationUpdateLocalMessage
Implementation of the local part of the GameBots2004 message UPD, used to facade UPDMessage. |
class |
LocationUpdateMessage.LocationUpdateSharedMessage
Implementation of the shared part of the GameBots2004 message UPD, used to facade UPDMessage. |
class |
LocationUpdateMessage.LocationUpdateStaticMessage
Implementation of the static part of the GameBots2004 message UPD, used to facade UPDMessage. |
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdate |
|---|
LocationUpdate.LocationUpdateUpdate |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected UnrealId |
Id
Unique Id of this update message instance. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected Location |
Loc
An absolute location of the bot. |
protected boolean |
Loc_Set
Whether property 'Loc' was received from GB2004. |
protected Rotation |
Rot
Which direction the bot is facing in absolute terms. |
protected boolean |
Rot_Set
Whether property 'Rot' was received from GB2004. |
protected ITeamId |
TeamId
|
protected Velocity |
Vel
Absolute velocity of the bot as a vector of movement per one game second. |
protected boolean |
Vel_Set
Whether property 'Vel' was received from GB2004. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdate |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
LocationUpdateMessage()
Parameter-less contructor for the message. |
|
LocationUpdateMessage(LocationUpdateMessage original)
Cloning constructor from the full message. |
|
LocationUpdateMessage(UnrealId Id,
Location Loc,
Velocity Vel,
Rotation Rot)
Creates new instance of the message LocationUpdate. |
|
| Method Summary | |
|---|---|
UnrealId |
getId()
Unique Id of this update message instance. |
Location |
getLoc()
An absolute location of the bot. |
LocationUpdateLocal |
getLocal()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Rotation |
getRot()
Which direction the bot is facing in absolute terms. |
LocationUpdateShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
LocationUpdateStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
ITeamId |
getTeamId()
|
Velocity |
getVel()
Absolute velocity of the bot as a vector of movement per one game second. |
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.LocationUpdate |
|---|
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 Location Loc
protected boolean Loc_Set
protected Velocity Vel
protected boolean Vel_Set
protected Rotation Rot
protected boolean Rot_Set
| Constructor Detail |
|---|
public LocationUpdateMessage()
public LocationUpdateMessage(UnrealId Id,
Location Loc,
Velocity Vel,
Rotation Rot)
Id - Unique Id of this update message instance.Loc - An absolute location of the bot.Vel - Absolute velocity of the bot as a vector of movement per one
game second.Rot - Which direction the bot is facing in absolute terms.public LocationUpdateMessage(LocationUpdateMessage original)
original - | Method Detail |
|---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
LocationUpdate
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class LocationUpdatepublic Location getLoc()
LocationUpdate
getLoc in class LocationUpdatepublic Velocity getVel()
LocationUpdate
getVel in class LocationUpdatepublic Rotation getRot()
LocationUpdate
getRot in class LocationUpdatepublic LocationUpdateLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic LocationUpdateShared getShared()
getShared in interface ICompositeWorldObjectpublic LocationUpdateStatic 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 LocationUpdatepublic String toHtmlString()
toHtmlString in class LocationUpdate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||