|
||||||||||
| 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.NavPointShared
public abstract class NavPointShared
Abstract definition of the shared part of the GameBots2004 message NAV.
Complete message documentation: Synchronous message - however only NavPoints marking item pickup locations are exported synchronously. Other NavPoints are not exported synchronously at all, even if the bot can actually see them (but note that ALL NavPoints are exported in the handshake between bot and the server). Exporting NavPoints synchronously took a lot of UT server resources with limited information gain (in Pogamut there is now available visibility matrix holding static information which points can be seen from other points). NavPoint carries information about UT navigation point - location, paths and some additional information are stored there (if it is an ambush point, or sniper point, etc.).
| Field Summary | |
|---|---|
static cz.cuni.amis.utils.token.Token |
DomPointControllerPropertyToken
|
static cz.cuni.amis.utils.token.Token |
DoorOpenedPropertyToken
|
static cz.cuni.amis.utils.token.Token |
ItemSpawnedPropertyToken
|
static cz.cuni.amis.utils.token.Token |
LocationPropertyToken
|
static Set<cz.cuni.amis.utils.token.Token> |
SharedPropertyTokens
|
protected long |
SimTime
|
static cz.cuni.amis.utils.token.Token |
VelocityPropertyToken
|
| Constructor Summary | |
|---|---|
NavPointShared()
Parameter-less contructor for the message. |
|
| Method Summary | |
|---|---|
abstract NavPointShared |
clone()
|
Class |
getCompositeClass()
|
abstract int |
getDomPointController()
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point. |
abstract UnrealId |
getId()
A unique Id of this navigation point assigned by the game. |
abstract Location |
getLocation()
Location of navigation point. |
long |
getSimTime()
Simulation time in MILLI SECONDS !!! |
abstract Velocity |
getVelocity()
Velocity of the navigation point (if the navigation point is currently moving). |
abstract boolean |
isDoorOpened()
True if this NavPoint is a Door and door is opened. |
abstract boolean |
isItemSpawned()
True if the item is spawned at the point. |
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 |
| Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
|---|
getProperties, getProperty |
| Field Detail |
|---|
protected long SimTime
public static final cz.cuni.amis.utils.token.Token LocationPropertyToken
public static final cz.cuni.amis.utils.token.Token VelocityPropertyToken
public static final cz.cuni.amis.utils.token.Token ItemSpawnedPropertyToken
public static final cz.cuni.amis.utils.token.Token DoorOpenedPropertyToken
public static final cz.cuni.amis.utils.token.Token DomPointControllerPropertyToken
public static final Set<cz.cuni.amis.utils.token.Token> SharedPropertyTokens
| Constructor Detail |
|---|
public NavPointShared()
| Method Detail |
|---|
public long getSimTime()
getSimTime in interface IWorldObjectgetSimTime in interface ISharedWorldObjectprotected void setSimTime(long SimTime)
public abstract NavPointShared clone()
clone in interface ISharedWorldObjectclone in class Objectpublic Class getCompositeClass()
getCompositeClass in interface ISharedWorldObjectpublic abstract UnrealId getId()
getId in interface IWorldObjectpublic abstract Location getLocation()
getLocation in interface ILocatedpublic abstract Velocity getVelocity()
getVelocity in interface ILocomotivepublic abstract boolean isItemSpawned()
public abstract boolean isDoorOpened()
public abstract int getDomPointController()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||