cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class LocationUpdateLocal

Package class diagram package LocationUpdateLocal
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateLocal
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, Cloneable
Direct Known Subclasses:
LocationUpdateLocalImpl, LocationUpdateMessage.LocationUpdateLocalMessage

public abstract class LocationUpdateLocal
extends InfoMessage
implements ILocalWorldObject

Abstract definition 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.


Field Summary
protected  long SimTime
           
 
Constructor Summary
LocationUpdateLocal()
          Parameter-less contructor for the message.
 
Method Summary
abstract  LocationUpdateLocal clone()
           
 Class getCompositeClass()
           
abstract  UnrealId getId()
          Unique Id of this update message instance.
abstract  Location getLoc()
          An absolute location of the bot.
 LocationUpdateLocal getLocal()
           
abstract  Rotation getRot()
          Which direction the bot is facing in absolute terms.
 ISharedWorldObject getShared()
           
 long getSimTime()
          Simulation time in MILLI SECONDS !!!
 IStaticWorldObject getStatic()
           
abstract  Velocity getVel()
          Absolute velocity of the bot as a vector of movement per one game second.
protected  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.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SimTime

protected long SimTime
Constructor Detail

LocationUpdateLocal

public LocationUpdateLocal()
Parameter-less contructor for the message.

Method Detail

getSimTime

public long getSimTime()
Simulation time in MILLI SECONDS !!!

Specified by:
getSimTime in interface IWorldObject

setSimTime

protected void setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.


clone

public abstract LocationUpdateLocal clone()
Specified by:
clone in interface ILocalWorldObject
Overrides:
clone in class Object

getCompositeClass

public Class getCompositeClass()
Specified by:
getCompositeClass in interface ILocalWorldObject

getId

public abstract UnrealId getId()
Unique Id of this update message instance.

Specified by:
getId in interface IWorldObject

getLoc

public abstract Location getLoc()
An absolute location of the bot.


getVel

public abstract Velocity getVel()
Absolute velocity of the bot as a vector of movement per one game second.


getRot

public abstract Rotation getRot()
Which direction the bot is facing in absolute terms.


getLocal

public LocationUpdateLocal getLocal()

getShared

public ISharedWorldObject getShared()

getStatic

public IStaticWorldObject getStatic()

toString

public String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public String toHtmlString()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.