|
||||||||||
| 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
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointMessage.NavPointSharedMessage
public class NavPointMessage.NavPointSharedMessage
Implementation of the shared part of the GameBots2004 message NAV, used to facade NAVMessage.
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 | |
|---|---|
protected IntProperty |
myDomPointController
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point. |
protected BooleanProperty |
myDoorOpened
True if this NavPoint is a Door and door is opened. |
protected BooleanProperty |
myItemSpawned
True if the item is spawned at the point. |
protected LocationProperty |
myLocation
Location of navigation point. |
protected VelocityProperty |
myVelocity
Velocity of the navigation point (if the navigation point is currently moving). |
protected HashMap<PropertyId,ISharedProperty> |
propertyMap
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointShared |
|---|
DomPointControllerPropertyToken, DoorOpenedPropertyToken, ItemSpawnedPropertyToken, LocationPropertyToken, SharedPropertyTokens, SimTime, VelocityPropertyToken |
| Constructor Summary | |
|---|---|
NavPointMessage.NavPointSharedMessage()
|
|
| Method Summary | |
|---|---|
NavPointMessage.NavPointSharedMessage |
clone()
|
int |
getDomPointController()
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point. |
UnrealId |
getId()
A unique Id of this navigation point assigned by the game. |
Location |
getLocation()
Location of navigation point. |
Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
Velocity |
getVelocity()
Velocity of the navigation point (if the navigation point is currently moving). |
boolean |
isDoorOpened()
True if this NavPoint is a Door and door is opened. |
boolean |
isItemSpawned()
True if the item is spawned at the point. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointShared |
|---|
getCompositeClass, getSimTime, setSimTime |
| 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 HashMap<PropertyId,ISharedProperty> propertyMap
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected BooleanProperty myItemSpawned
protected BooleanProperty myDoorOpened
protected IntProperty myDomPointController
| Constructor Detail |
|---|
public NavPointMessage.NavPointSharedMessage()
| Method Detail |
|---|
public NavPointMessage.NavPointSharedMessage clone()
clone in interface ISharedWorldObjectclone in class NavPointSharedpublic ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class NavPointSharedpublic Location getLocation()
getLocation in interface ILocatedgetLocation in class NavPointSharedpublic Velocity getVelocity()
getVelocity in interface ILocomotivegetVelocity in class NavPointSharedpublic boolean isItemSpawned()
isItemSpawned in class NavPointSharedpublic boolean isDoorOpened()
isDoorOpened in class NavPointSharedpublic int getDomPointController()
getDomPointController in class NavPointSharedpublic String toString()
toString in class NavPointSharedpublic String toHtmlString()
toHtmlString in class NavPointShared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||