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

Package class diagram package NavPointMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointMessage
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent, cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject, cz.cuni.amis.pogamut.base3d.worldview.object.ILocated, cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive, cz.cuni.amis.pogamut.base3d.worldview.object.IViewable, cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent, cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject, IGBViewable, cz.cuni.amis.utils.listener.Event

public class NavPointMessage
extends NavPoint
implements cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent, cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent

Implementation of the GameBots2004 message NAV contains also its Local/Shared/Static subpart class definitions..

Complete message documentation: 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..).


Nested Class Summary
 class NavPointMessage.NavPointLocalMessage
          Implementation of the local part of the GameBots2004 message NAV, used to facade NAVMessage.
 class NavPointMessage.NavPointSharedMessage
          Implementation of the shared part of the GameBots2004 message NAV, used to facade NAVMessage.
 class NavPointMessage.NavPointStaticMessage
          Implementation of the static part of the GameBots2004 message NAV, used to facade NAVMessage.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint
NavPoint.NavPointUpdate, NavPoint.ObjectDisappeared
 
Field Summary
protected  boolean AIMarker
          If this point is an AI marker - marks an interesting spot in the environment.
protected  boolean AIMarker_Set
          Whether property 'AIMarker' was received from GB2004.
protected  boolean DomPoint
          If this point marks a DominationPoint (for BotDoubleDomination game).
protected  boolean DomPoint_Set
          Whether property 'DomPoint' was received from GB2004.
protected  int DomPointController
          Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.
protected  boolean DomPointController_Set
          Whether property 'DomPointController' was received from GB2004.
protected  boolean Door
          If this point marks a door mover.
protected  boolean Door_Set
          Whether property 'Door' was received from GB2004.
protected  boolean DoorOpened
          True if this NavPoint is a Door and door is opened.
protected  boolean DoorOpened_Set
          Whether property 'DoorOpened' was received from GB2004.
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          A unique Id of this navigation point assigned by the game.
protected  boolean Id_Set
          Whether property 'Id' was received from GB2004.
protected  Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> IncomingEdges
          Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).
protected  boolean IncomingEdges_Set
          Whether property 'IncomingEdges' was received from GB2004.
protected  boolean InvSpot
          If this is an inventory spot (item is respawned at this point).
protected  boolean InvSpot_Set
          Whether property 'InvSpot' was received from GB2004.
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Item
          Unique Id of the respawned item (the item respawns at this point).
protected  boolean Item_Set
          Whether property 'Item' was received from GB2004.
protected  ItemType ItemClass
          Class of the item (e.g.
protected  boolean ItemClass_Set
          Whether property 'ItemClass' was received from GB2004.
protected  Item ItemInstance
          If item should be present at this navpoint it's instance will be here.
protected  boolean ItemInstance_Set
          Whether property 'ItemInstance' was received from GB2004.
protected  boolean ItemSpawned
          True if the item is spawned at the point.
protected  boolean ItemSpawned_Set
          Whether property 'ItemSpawned' was received from GB2004.
protected  boolean JumpDest
          If this point marks a jump destination - some place that can be reached by some special jump.
protected  boolean JumpDest_Set
          Whether property 'JumpDest' was received from GB2004.
protected  boolean JumpPad
          If this point marks a jump pad (a special device that causes the bot to jump high or far).
protected  boolean JumpPad_Set
          Whether property 'JumpPad' was received from GB2004.
protected  boolean JumpSpot
          If this point marks a jump spot (a special device that causes the bot to jump high or far).
protected  boolean JumpSpot_Set
          Whether property 'JumpSpot' was received from GB2004.
protected  boolean LiftCenter
          If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).
protected  boolean LiftCenter_Set
          Whether property 'LiftCenter' was received from GB2004.
protected  boolean LiftExit
          If this point marks a lift exit (used to mark exit point of a lift mover).
protected  boolean LiftExit_Set
          Whether property 'LiftExit' was received from GB2004.
protected  boolean LiftJumpExit
          Boolean.
protected  boolean LiftJumpExit_Set
          Whether property 'LiftJumpExit' was received from GB2004.
protected  javax.vecmath.Vector3d LiftOffset
          Starting vector between MyLift location and LiftCenter location.
protected  boolean LiftOffset_Set
          Whether property 'LiftOffset' was received from GB2004.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
          Location of navigation point.
protected  boolean Location_Set
          Whether property 'Location' was received from GB2004.
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Mover
          If this NavPoint is marking some mover, the mover id will be here.
protected  boolean Mover_Set
          Whether property 'Mover' was received from GB2004.
protected  boolean NoDoubleJump
          Boolean.
protected  boolean NoDoubleJump_Set
          Whether property 'NoDoubleJump' was received from GB2004.
protected  Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> OutgoingEdges
          Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).
protected  boolean OutgoingEdges_Set
          Whether property 'OutgoingEdges' was received from GB2004.
protected  boolean PlayerStart
          If this is a player start (players and/or bots are respawned at this point).
protected  boolean PlayerStart_Set
          Whether property 'PlayerStart' was received from GB2004.
protected  String PreferedWeapon
          Class of the weapon that should be prefered when using this point for AIMarker specified action.
protected  boolean PreferedWeapon_Set
          Whether property 'PreferedWeapon' was received from GB2004.
protected  boolean RoamingSpot
          Some ambush point, where is good chance to intercept approaching opponents.
protected  boolean RoamingSpot_Set
          Whether property 'RoamingSpot' was received from GB2004.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
          If the type is AIMarker.
protected  boolean Rotation_Set
          Whether property 'Rotation' was received from GB2004.
protected  boolean SnipingSpot
          Point good for sniping.
protected  boolean SnipingSpot_Set
          Whether property 'SnipingSpot' was received from GB2004.
protected  cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId
           
protected  int TeamNumber
          Will be sent if this is a player start.
protected  boolean TeamNumber_Set
          Whether property 'TeamNumber' was received from GB2004.
protected  boolean Teleporter
          If this point marks a teleport.
protected  boolean Teleporter_Set
          Whether property 'Teleporter' was received from GB2004.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
          Velocity of the navigation point (if the navigation point is currently moving).
protected  boolean Velocity_Set
          Whether property 'Velocity' was received from GB2004.
protected  boolean Visible
          If the point is in the field of view of the bot.
protected  boolean Visible_Set
          Whether property 'Visible' was received from GB2004.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint
PROTOTYPE, SimTime
 
Constructor Summary
NavPointMessage()
          Parameter-less contructor for the message.
NavPointMessage(NavPointMessage original)
          Cloning constructor from the full message.
NavPointMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, cz.cuni.amis.pogamut.base3d.worldview.object.Location Location, cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity, boolean Visible, cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Item, ItemType ItemClass, boolean ItemSpawned, boolean DoorOpened, cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Mover, javax.vecmath.Vector3d LiftOffset, boolean LiftJumpExit, boolean NoDoubleJump, boolean InvSpot, boolean PlayerStart, int TeamNumber, boolean DomPoint, int DomPointController, boolean Door, boolean LiftCenter, boolean LiftExit, boolean AIMarker, boolean JumpSpot, boolean JumpPad, boolean JumpDest, boolean Teleporter, cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation, boolean RoamingSpot, boolean SnipingSpot, Item ItemInstance, Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> OutgoingEdges, Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> IncomingEdges, String PreferedWeapon)
          Creates new instance of the message NavPoint.
 
Method Summary
 int getDomPointController()
          Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          A unique Id of this navigation point assigned by the game.
 Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> getIncomingEdges()
          Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getItem()
          Unique Id of the respawned item (the item respawns at this point).
 ItemType getItemClass()
          Class of the item (e.g.
 Item getItemInstance()
          If item should be present at this navpoint it's instance will be here.
 javax.vecmath.Vector3d getLiftOffset()
          Starting vector between MyLift location and LiftCenter location.
 NavPointLocal getLocal()
           
 cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
          Location of navigation point.
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getMover()
          If this NavPoint is marking some mover, the mover id will be here.
 Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> getOutgoingEdges()
          Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).
 String getPreferedWeapon()
          Class of the weapon that should be prefered when using this point for AIMarker specified action.
 cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
          If the type is AIMarker.
 NavPointShared getShared()
           
 cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
           
 NavPointStatic getStatic()
           
 cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
           
 cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()
           
 int getTeamNumber()
          Will be sent if this is a player start.
 cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
          Velocity of the navigation point (if the navigation point is currently moving).
 boolean isAIMarker()
          If this point is an AI marker - marks an interesting spot in the environment.
 boolean isDomPoint()
          If this point marks a DominationPoint (for BotDoubleDomination game).
 boolean isDoor()
          If this point marks a door mover.
 boolean isDoorOpened()
          True if this NavPoint is a Door and door is opened.
 boolean isInvSpot()
          If this is an inventory spot (item is respawned at this point).
 boolean isItemSpawned()
          True if the item is spawned at the point.
 boolean isJumpDest()
          If this point marks a jump destination - some place that can be reached by some special jump.
 boolean isJumpPad()
          If this point marks a jump pad (a special device that causes the bot to jump high or far).
 boolean isJumpSpot()
          If this point marks a jump spot (a special device that causes the bot to jump high or far).
 boolean isLiftCenter()
          If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).
 boolean isLiftExit()
          If this point marks a lift exit (used to mark exit point of a lift mover).
 boolean isLiftJumpExit()
          Boolean.
 boolean isNoDoubleJump()
          Boolean.
 boolean isPlayerStart()
          If this is a player start (players and/or bots are respawned at this point).
 boolean isRoamingSpot()
          Some ambush point, where is good chance to intercept approaching opponents.
 boolean isSnipingSpot()
          Point good for sniping.
 boolean isTeleporter()
          If this point marks a teleport.
 boolean isVisible()
          If the point is in the field of view of the bot.
 void setItemInstance(Item item)
          DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used to set correct item instance into the NavPoint.
protected  void setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 String toHtmlString()
           
 String toString()
           
 cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint
createDisappearEvent, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
 

Field Detail

TeamId

protected cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
A unique Id of this navigation point assigned by the game.


Id_Set

protected boolean Id_Set
Whether property 'Id' was received from GB2004.


Location

protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
Location of navigation point.


Location_Set

protected boolean Location_Set
Whether property 'Location' was received from GB2004.


Velocity

protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
Velocity of the navigation point (if the navigation point is currently moving). Not sent at the moment.


Velocity_Set

protected boolean Velocity_Set
Whether property 'Velocity' was received from GB2004.


Visible

protected boolean Visible
If the point is in the field of view of the bot.


Visible_Set

protected boolean Visible_Set
Whether property 'Visible' was received from GB2004.


Item

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Item
Unique Id of the respawned item (the item respawns at this point). Not sent if point is not an inventory spot. Sent only in HandShake.


Item_Set

protected boolean Item_Set
Whether property 'Item' was received from GB2004.


ItemClass

protected ItemType ItemClass
Class of the item (e.g. xWeapons.FlakCannonPickup). Not sent if point is not an inventory spot. Sent only in HandShake.


ItemClass_Set

protected boolean ItemClass_Set
Whether property 'ItemClass' was received from GB2004.


ItemSpawned

protected boolean ItemSpawned
True if the item is spawned at the point. Not sent if point is not an inventory spot.


ItemSpawned_Set

protected boolean ItemSpawned_Set
Whether property 'ItemSpawned' was received from GB2004.


DoorOpened

protected boolean DoorOpened
True if this NavPoint is a Door and door is opened. Not sent if point is not a door.


DoorOpened_Set

protected boolean DoorOpened_Set
Whether property 'DoorOpened' was received from GB2004.


Mover

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Mover
If this NavPoint is marking some mover, the mover id will be here. Not sent if point is not a Door, a LiftCenter or a LiftExit. Sent only in HandShake.


Mover_Set

protected boolean Mover_Set
Whether property 'Mover' was received from GB2004.


LiftOffset

protected javax.vecmath.Vector3d LiftOffset
Starting vector between MyLift location and LiftCenter location. Not sent if point is not a LiftCenter. Sent only in HandShake.


LiftOffset_Set

protected boolean LiftOffset_Set
Whether property 'LiftOffset' was received from GB2004.


LiftJumpExit

protected boolean LiftJumpExit
Boolean. If we can/should exit the lift by a jump when near the destination place. Not sent if point is not a LiftExit. Sent only in HandShake.


LiftJumpExit_Set

protected boolean LiftJumpExit_Set
Whether property 'LiftJumpExit' was received from GB2004.


NoDoubleJump

protected boolean NoDoubleJump
Boolean. If we should or not use double jump when exiting lift with a jump. Not sent if point is not a LiftExit. Sent only in HandShake.


NoDoubleJump_Set

protected boolean NoDoubleJump_Set
Whether property 'NoDoubleJump' was received from GB2004.


InvSpot

protected boolean InvSpot
If this is an inventory spot (item is respawned at this point).


InvSpot_Set

protected boolean InvSpot_Set
Whether property 'InvSpot' was received from GB2004.


PlayerStart

protected boolean PlayerStart
If this is a player start (players and/or bots are respawned at this point).


PlayerStart_Set

protected boolean PlayerStart_Set
Whether property 'PlayerStart' was received from GB2004.


TeamNumber

protected int TeamNumber
Will be sent if this is a player start. In Team games (team deathmatch, capture the flag, domination) holds information about which team respawns at this player start spot. In non-team games will return 0!


TeamNumber_Set

protected boolean TeamNumber_Set
Whether property 'TeamNumber' was received from GB2004.


DomPoint

protected boolean DomPoint
If this point marks a DominationPoint (for BotDoubleDomination game).


DomPoint_Set

protected boolean DomPoint_Set
Whether property 'DomPoint' was received from GB2004.


DomPointController

protected int DomPointController
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.


DomPointController_Set

protected boolean DomPointController_Set
Whether property 'DomPointController' was received from GB2004.


Door

protected boolean Door
If this point marks a door mover.


Door_Set

protected boolean Door_Set
Whether property 'Door' was received from GB2004.


LiftCenter

protected boolean LiftCenter
If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).


LiftCenter_Set

protected boolean LiftCenter_Set
Whether property 'LiftCenter' was received from GB2004.


LiftExit

protected boolean LiftExit
If this point marks a lift exit (used to mark exit point of a lift mover).


LiftExit_Set

protected boolean LiftExit_Set
Whether property 'LiftExit' was received from GB2004.


AIMarker

protected boolean AIMarker
If this point is an AI marker - marks an interesting spot in the environment. May be ambush point or sniping spot, etc.


AIMarker_Set

protected boolean AIMarker_Set
Whether property 'AIMarker' was received from GB2004.


JumpSpot

protected boolean JumpSpot
If this point marks a jump spot (a special device that causes the bot to jump high or far).


JumpSpot_Set

protected boolean JumpSpot_Set
Whether property 'JumpSpot' was received from GB2004.


JumpPad

protected boolean JumpPad
If this point marks a jump pad (a special device that causes the bot to jump high or far).


JumpPad_Set

protected boolean JumpPad_Set
Whether property 'JumpPad' was received from GB2004.


JumpDest

protected boolean JumpDest
If this point marks a jump destination - some place that can be reached by some special jump.


JumpDest_Set

protected boolean JumpDest_Set
Whether property 'JumpDest' was received from GB2004.


Teleporter

protected boolean Teleporter
If this point marks a teleport.


Teleporter_Set

protected boolean Teleporter_Set
Whether property 'Teleporter' was received from GB2004.


Rotation

protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
If the type is AIMarker. The rotation the bot should be facing, when doing the action specified by AIMarker. Sent only in HandShake.


Rotation_Set

protected boolean Rotation_Set
Whether property 'Rotation' was received from GB2004.


RoamingSpot

protected boolean RoamingSpot
Some ambush point, where is good chance to intercept approaching opponents. Sent only in HandShake.


RoamingSpot_Set

protected boolean RoamingSpot_Set
Whether property 'RoamingSpot' was received from GB2004.


SnipingSpot

protected boolean SnipingSpot
Point good for sniping. Sent only in HandShake.


SnipingSpot_Set

protected boolean SnipingSpot_Set
Whether property 'SnipingSpot' was received from GB2004.


ItemInstance

protected Item ItemInstance
If item should be present at this navpoint it's instance will be here.


ItemInstance_Set

protected boolean ItemInstance_Set
Whether property 'ItemInstance' was received from GB2004.


OutgoingEdges

protected Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> OutgoingEdges
Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).


OutgoingEdges_Set

protected boolean OutgoingEdges_Set
Whether property 'OutgoingEdges' was received from GB2004.


IncomingEdges

protected Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> IncomingEdges
Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).


IncomingEdges_Set

protected boolean IncomingEdges_Set
Whether property 'IncomingEdges' was received from GB2004.


PreferedWeapon

protected String PreferedWeapon
Class of the weapon that should be prefered when using this point for AIMarker specified action. Sent only in HandShake.


PreferedWeapon_Set

protected boolean PreferedWeapon_Set
Whether property 'PreferedWeapon' was received from GB2004.

Constructor Detail

NavPointMessage

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


NavPointMessage

public NavPointMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                       cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
                       cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity,
                       boolean Visible,
                       cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Item,
                       ItemType ItemClass,
                       boolean ItemSpawned,
                       boolean DoorOpened,
                       cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Mover,
                       javax.vecmath.Vector3d LiftOffset,
                       boolean LiftJumpExit,
                       boolean NoDoubleJump,
                       boolean InvSpot,
                       boolean PlayerStart,
                       int TeamNumber,
                       boolean DomPoint,
                       int DomPointController,
                       boolean Door,
                       boolean LiftCenter,
                       boolean LiftExit,
                       boolean AIMarker,
                       boolean JumpSpot,
                       boolean JumpPad,
                       boolean JumpDest,
                       boolean Teleporter,
                       cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
                       boolean RoamingSpot,
                       boolean SnipingSpot,
                       Item ItemInstance,
                       Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> OutgoingEdges,
                       Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> IncomingEdges,
                       String PreferedWeapon)
Creates new instance of the message NavPoint. 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.

Parameters:
Id - A unique Id of this navigation point assigned by the game.
Location - Location of navigation point.
Velocity - Velocity of the navigation point (if the navigation point is currently moving). Not sent at the moment.
Visible - If the point is in the field of view of the bot.
Item - Unique Id of the respawned item (the item respawns at this point). Not sent if point is not an inventory spot. Sent only in HandShake.
ItemClass - Class of the item (e.g. xWeapons.FlakCannonPickup). Not sent if point is not an inventory spot. Sent only in HandShake.
ItemSpawned - True if the item is spawned at the point. Not sent if point is not an inventory spot.
DoorOpened - True if this NavPoint is a Door and door is opened. Not sent if point is not a door.
Mover - If this NavPoint is marking some mover, the mover id will be here. Not sent if point is not a Door, a LiftCenter or a LiftExit. Sent only in HandShake.
LiftOffset - Starting vector between MyLift location and LiftCenter location. Not sent if point is not a LiftCenter. Sent only in HandShake.
LiftJumpExit - Boolean. If we can/should exit the lift by a jump when near the destination place. Not sent if point is not a LiftExit. Sent only in HandShake.
NoDoubleJump - Boolean. If we should or not use double jump when exiting lift with a jump. Not sent if point is not a LiftExit. Sent only in HandShake.
InvSpot - If this is an inventory spot (item is respawned at this point).
PlayerStart - If this is a player start (players and/or bots are respawned at this point).
TeamNumber - Will be sent if this is a player start. In Team games (team deathmatch, capture the flag, domination) holds information about which team respawns at this player start spot. In non-team games will return 0!
DomPoint - If this point marks a DominationPoint (for BotDoubleDomination game).
DomPointController - Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.
Door - If this point marks a door mover.
LiftCenter - If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).
LiftExit - If this point marks a lift exit (used to mark exit point of a lift mover).
AIMarker - If this point is an AI marker - marks an interesting spot in the environment. May be ambush point or sniping spot, etc.
JumpSpot - If this point marks a jump spot (a special device that causes the bot to jump high or far).
JumpPad - If this point marks a jump pad (a special device that causes the bot to jump high or far).
JumpDest - If this point marks a jump destination - some place that can be reached by some special jump.
Teleporter - If this point marks a teleport.
Rotation - If the type is AIMarker. The rotation the bot should be facing, when doing the action specified by AIMarker. Sent only in HandShake.
RoamingSpot - Some ambush point, where is good chance to intercept approaching opponents. Sent only in HandShake.
SnipingSpot - Point good for sniping. Sent only in HandShake.
ItemInstance - If item should be present at this navpoint it's instance will be here.
OutgoingEdges - Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).
IncomingEdges - Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).
PreferedWeapon - Class of the weapon that should be prefered when using this point for AIMarker specified action. Sent only in HandShake.

NavPointMessage

public NavPointMessage(NavPointMessage original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

setTeamId

protected void setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
Used by Yylex to slip corretn TeamId.


getTeamId

public cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Description copied from class: NavPoint
A unique Id of this navigation point assigned by the game.

Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
Specified by:
getId in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
Specified by:
getId in class NavPoint

getLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Description copied from class: NavPoint
Location of navigation point.

Specified by:
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated
Specified by:
getLocation in class NavPoint

getVelocity

public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
Description copied from class: NavPoint
Velocity of the navigation point (if the navigation point is currently moving). Not sent at the moment.

Specified by:
getVelocity in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive
Specified by:
getVelocity in class NavPoint

isVisible

public boolean isVisible()
Description copied from class: NavPoint
If the point is in the field of view of the bot.

Specified by:
isVisible in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewable
Specified by:
isVisible in class NavPoint

getItem

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getItem()
Description copied from class: NavPoint
Unique Id of the respawned item (the item respawns at this point). Not sent if point is not an inventory spot. Sent only in HandShake.

Specified by:
getItem in class NavPoint

getItemClass

public ItemType getItemClass()
Description copied from class: NavPoint
Class of the item (e.g. xWeapons.FlakCannonPickup). Not sent if point is not an inventory spot. Sent only in HandShake.

Specified by:
getItemClass in class NavPoint

isItemSpawned

public boolean isItemSpawned()
Description copied from class: NavPoint
True if the item is spawned at the point. Not sent if point is not an inventory spot.

Specified by:
isItemSpawned in class NavPoint

isDoorOpened

public boolean isDoorOpened()
Description copied from class: NavPoint
True if this NavPoint is a Door and door is opened. Not sent if point is not a door.

Specified by:
isDoorOpened in class NavPoint

getMover

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getMover()
Description copied from class: NavPoint
If this NavPoint is marking some mover, the mover id will be here. Not sent if point is not a Door, a LiftCenter or a LiftExit. Sent only in HandShake.

Specified by:
getMover in class NavPoint

getLiftOffset

public javax.vecmath.Vector3d getLiftOffset()
Description copied from class: NavPoint
Starting vector between MyLift location and LiftCenter location. Not sent if point is not a LiftCenter. Sent only in HandShake.

Specified by:
getLiftOffset in class NavPoint

isLiftJumpExit

public boolean isLiftJumpExit()
Description copied from class: NavPoint
Boolean. If we can/should exit the lift by a jump when near the destination place. Not sent if point is not a LiftExit. Sent only in HandShake.

Specified by:
isLiftJumpExit in class NavPoint

isNoDoubleJump

public boolean isNoDoubleJump()
Description copied from class: NavPoint
Boolean. If we should or not use double jump when exiting lift with a jump. Not sent if point is not a LiftExit. Sent only in HandShake.

Specified by:
isNoDoubleJump in class NavPoint

isInvSpot

public boolean isInvSpot()
Description copied from class: NavPoint
If this is an inventory spot (item is respawned at this point).

Specified by:
isInvSpot in class NavPoint

isPlayerStart

public boolean isPlayerStart()
Description copied from class: NavPoint
If this is a player start (players and/or bots are respawned at this point).

Specified by:
isPlayerStart in class NavPoint

getTeamNumber

public int getTeamNumber()
Description copied from class: NavPoint
Will be sent if this is a player start. In Team games (team deathmatch, capture the flag, domination) holds information about which team respawns at this player start spot. In non-team games will return 0!

Specified by:
getTeamNumber in class NavPoint

isDomPoint

public boolean isDomPoint()
Description copied from class: NavPoint
If this point marks a DominationPoint (for BotDoubleDomination game).

Specified by:
isDomPoint in class NavPoint

getDomPointController

public int getDomPointController()
Description copied from class: NavPoint
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.

Specified by:
getDomPointController in class NavPoint

isDoor

public boolean isDoor()
Description copied from class: NavPoint
If this point marks a door mover.

Specified by:
isDoor in class NavPoint

isLiftCenter

public boolean isLiftCenter()
Description copied from class: NavPoint
If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).

Specified by:
isLiftCenter in class NavPoint

isLiftExit

public boolean isLiftExit()
Description copied from class: NavPoint
If this point marks a lift exit (used to mark exit point of a lift mover).

Specified by:
isLiftExit in class NavPoint

isAIMarker

public boolean isAIMarker()
Description copied from class: NavPoint
If this point is an AI marker - marks an interesting spot in the environment. May be ambush point or sniping spot, etc.

Specified by:
isAIMarker in class NavPoint

isJumpSpot

public boolean isJumpSpot()
Description copied from class: NavPoint
If this point marks a jump spot (a special device that causes the bot to jump high or far).

Specified by:
isJumpSpot in class NavPoint

isJumpPad

public boolean isJumpPad()
Description copied from class: NavPoint
If this point marks a jump pad (a special device that causes the bot to jump high or far).

Specified by:
isJumpPad in class NavPoint

isJumpDest

public boolean isJumpDest()
Description copied from class: NavPoint
If this point marks a jump destination - some place that can be reached by some special jump.

Specified by:
isJumpDest in class NavPoint

isTeleporter

public boolean isTeleporter()
Description copied from class: NavPoint
If this point marks a teleport.

Specified by:
isTeleporter in class NavPoint

getRotation

public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
Description copied from class: NavPoint
If the type is AIMarker. The rotation the bot should be facing, when doing the action specified by AIMarker. Sent only in HandShake.

Specified by:
getRotation in class NavPoint

isRoamingSpot

public boolean isRoamingSpot()
Description copied from class: NavPoint
Some ambush point, where is good chance to intercept approaching opponents. Sent only in HandShake.

Specified by:
isRoamingSpot in class NavPoint

isSnipingSpot

public boolean isSnipingSpot()
Description copied from class: NavPoint
Point good for sniping. Sent only in HandShake.

Specified by:
isSnipingSpot in class NavPoint

getItemInstance

public Item getItemInstance()
Description copied from class: NavPoint
If item should be present at this navpoint it's instance will be here.

Specified by:
getItemInstance in class NavPoint

getOutgoingEdges

public Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> getOutgoingEdges()
Description copied from class: NavPoint
Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).

Specified by:
getOutgoingEdges in class NavPoint

getIncomingEdges

public Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,NavPointNeighbourLink> getIncomingEdges()
Description copied from class: NavPoint
Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).

Specified by:
getIncomingEdges in class NavPoint

getPreferedWeapon

public String getPreferedWeapon()
Description copied from class: NavPoint
Class of the weapon that should be prefered when using this point for AIMarker specified action. Sent only in HandShake.

Specified by:
getPreferedWeapon in class NavPoint

getLocal

public NavPointLocal getLocal()
Specified by:
getLocal in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject

getShared

public NavPointShared getShared()
Specified by:
getShared in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject

getStatic

public NavPointStatic getStatic()
Specified by:
getStatic in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject

update

public cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
Specified by:
update in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent

getLocalEvent

public cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
Specified by:
getLocalEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent

getSharedEvent

public cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
Specified by:
getSharedEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent

getStaticEvent

public cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
Specified by:
getStaticEvent in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent

toString

public String toString()
Overrides:
toString in class NavPoint

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class NavPoint

setItemInstance

public void setItemInstance(Item item)
DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used to set correct item instance into the NavPoint.



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