|
||||||||||
| 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.LocationUpdateLocal
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateLocalImpl
public class LocationUpdateLocalImpl
Implementation of the local part of the GameBots2004 message UPD.
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 | |
|---|---|
static class |
LocationUpdateLocalImpl.LocationUpdateLocalUpdate
|
| Field Summary | |
|---|---|
protected UnrealId |
Id
Unique Id of this update message instance. |
protected Location |
Loc
An absolute location of the bot. |
protected Rotation |
Rot
Which direction the bot is facing in absolute terms. |
protected Velocity |
Vel
Absolute velocity of the bot as a vector of movement per one game second. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateLocal |
|---|
SimTime |
| Constructor Summary | |
|---|---|
LocationUpdateLocalImpl()
Parameter-less contructor for the message. |
|
LocationUpdateLocalImpl(LocationUpdate original)
Cloning constructor from the full message. |
|
LocationUpdateLocalImpl(LocationUpdateLocal original)
Cloning constructor from the message part. |
|
LocationUpdateLocalImpl(LocationUpdateLocalImpl original)
Cloning constructor from the full message. |
|
LocationUpdateLocalImpl(UnrealId Id,
Location Loc,
Velocity Vel,
Rotation Rot)
Creates new instance of the message LocationUpdate. |
|
| Method Summary | |
|---|---|
LocationUpdateLocalImpl |
clone()
|
UnrealId |
getId()
Unique Id of this update message instance. |
Location |
getLoc()
An absolute location of the bot. |
LocationUpdateLocalImpl |
getLocal()
|
Rotation |
getRot()
Which direction the bot is facing in absolute terms. |
ISharedWorldObject |
getShared()
|
IStaticWorldObject |
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.LocationUpdateLocal |
|---|
getCompositeClass, getSimTime |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected UnrealId Id
protected Location Loc
protected Velocity Vel
protected Rotation Rot
| Constructor Detail |
|---|
public LocationUpdateLocalImpl()
public LocationUpdateLocalImpl(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 LocationUpdateLocalImpl(LocationUpdate original)
original - public LocationUpdateLocalImpl(LocationUpdateLocalImpl original)
original - public LocationUpdateLocalImpl(LocationUpdateLocal original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
LocationUpdateLocal
setSimTime in class LocationUpdateLocalpublic LocationUpdateLocalImpl clone()
clone in interface ILocalWorldObjectclone in class LocationUpdateLocalpublic UnrealId getId()
getId in interface IWorldObjectgetId in class LocationUpdateLocalpublic Location getLoc()
getLoc in class LocationUpdateLocalpublic Velocity getVel()
getVel in class LocationUpdateLocalpublic Rotation getRot()
getRot in class LocationUpdateLocalpublic LocationUpdateLocalImpl getLocal()
getLocal in class LocationUpdateLocalpublic ISharedWorldObject getShared()
getShared in class LocationUpdateLocalpublic IStaticWorldObject getStatic()
getStatic in class LocationUpdateLocalpublic String toString()
toString in class LocationUpdateLocalpublic String toHtmlString()
toHtmlString in class LocationUpdateLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||