cz.cuni.amis.pogamut.ut2004.communication.messages
Interface INavPoint

All Superinterfaces:
ICompositeWorldObject, ILocated, IViewable, IWorldObject

public interface INavPoint
extends ILocated, IViewable, IWorldObject

Synchronous message. NavPoint carries information about UT navigation point - location, reachability... Also some item can be respawned at this point. Or some additional information can be stored here (if it is an ambush point, or sniper point..). Corresponding GameBots message is NAV.


Method Summary
 java.lang.String getFlag()
          What type is this NavPoint.
 UnrealId getId()
          A unique Id of this navigation point assigned by the game.
 WorldObjectId getItem()
          Unique Id of the respawned item (the item respawns at this point).
 Location getLocation()
          Location of navigation point.
 java.util.Map<UnrealId,NavPointNeighbourLink> getNeighbourLinks()
          Retuns map with links to navpoint neighbours.
 java.lang.String getPreferedWeapon()
          Class of the weapon that should be prefered when using this point for AIMarker specified action.
 Rotation getRotation()
          If the type is AIMarker.
 boolean isReachable()
          If the bot can reach the point directly.
 boolean isRoamingSpot()
          Some ambush point, where is good chance to intercept approaching opponents.
 boolean isSnipingSpot()
          Point good for sniping.
 boolean isVisible()
          If the point is in the field of view of the bot.
 
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
getLocal, getShared, getStatic
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getSimTime
 

Method Detail

getId

UnrealId getId()
A unique Id of this navigation point assigned by the game.

Specified by:
getId in interface IWorldObject
Returns:

getLocation

Location getLocation()
Location of navigation point.

Specified by:
getLocation in interface ILocated
Returns:
Current location of the object, represented as a point within the world's coordinates.

isVisible

boolean isVisible()
If the point is in the field of view of the bot.

Specified by:
isVisible in interface IViewable
Returns:
True if the object is visible; false otherwise.

isReachable

boolean isReachable()
If the bot can reach the point directly.


getItem

WorldObjectId getItem()
Unique Id of the respawned item (the item respawns at this point).


getFlag

java.lang.String getFlag()
What type is this NavPoint. The types are: PathNode, PlayerStart, InventorySpot and AIMarker. If the type is AIMarker, more attributes appear in NAV message - see below.


getRotation

Rotation getRotation()
If the type is AIMarker. The rotation the bot should be facing, when doing the action specified by AIMarker.


isRoamingSpot

boolean isRoamingSpot()
Some ambush point, where is good chance to intercept approaching opponents.


isSnipingSpot

boolean isSnipingSpot()
Point good for sniping.


getPreferedWeapon

java.lang.String getPreferedWeapon()
Class of the weapon that should be prefered when using this point for AIMarker specified action.


getNeighbourLinks

java.util.Map<UnrealId,NavPointNeighbourLink> getNeighbourLinks()
Retuns map with links to navpoint neighbours. Maps neighbour-navpoint-UnrealId to neighbour link.