|
||||||||||
| 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.NavPoint
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointMessage
public class NavPointMessage
Implementation of the GameBots2004 message NAV contains also its Local/Shared/Static subpart class definitions..
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.).
| 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 |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| 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 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<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 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 Location |
Location
Location of navigation point. |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected 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<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 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 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 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(UnrealId Id,
Location Location,
Velocity Velocity,
boolean Visible,
UnrealId Item,
ItemType ItemClass,
boolean ItemSpawned,
boolean DoorOpened,
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,
Rotation Rotation,
boolean RoamingSpot,
boolean SnipingSpot,
Item ItemInstance,
Map<UnrealId,NavPointNeighbourLink> OutgoingEdges,
Map<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. |
UnrealId |
getId()
A unique Id of this navigation point assigned by the game. |
Map<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). |
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()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Location |
getLocation()
Location of navigation point. |
UnrealId |
getMover()
If this NavPoint is marking some mover, the mover id will be here. |
Map<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. |
Rotation |
getRotation()
If the type is AIMarker. |
NavPointShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
NavPointStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
ITeamId |
getTeamId()
|
int |
getTeamNumber()
Will be sent if this is a player start. |
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(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint |
|---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
| 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 |
|---|
protected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected Location Location
protected boolean Location_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected boolean Visible
protected boolean Visible_Set
protected UnrealId Item
protected boolean Item_Set
protected ItemType ItemClass
protected boolean ItemClass_Set
protected boolean ItemSpawned
protected boolean ItemSpawned_Set
protected boolean DoorOpened
protected boolean DoorOpened_Set
protected UnrealId Mover
protected boolean Mover_Set
protected javax.vecmath.Vector3d LiftOffset
protected boolean LiftOffset_Set
protected boolean LiftJumpExit
protected boolean LiftJumpExit_Set
protected boolean NoDoubleJump
protected boolean NoDoubleJump_Set
protected boolean InvSpot
protected boolean InvSpot_Set
protected boolean PlayerStart
protected boolean PlayerStart_Set
protected int TeamNumber
protected boolean TeamNumber_Set
protected boolean DomPoint
protected boolean DomPoint_Set
protected int DomPointController
protected boolean DomPointController_Set
protected boolean Door
protected boolean Door_Set
protected boolean LiftCenter
protected boolean LiftCenter_Set
protected boolean LiftExit
protected boolean LiftExit_Set
protected boolean AIMarker
protected boolean AIMarker_Set
protected boolean JumpSpot
protected boolean JumpSpot_Set
protected boolean JumpPad
protected boolean JumpPad_Set
protected boolean JumpDest
protected boolean JumpDest_Set
protected boolean Teleporter
protected boolean Teleporter_Set
protected Rotation Rotation
protected boolean Rotation_Set
protected boolean RoamingSpot
protected boolean RoamingSpot_Set
protected boolean SnipingSpot
protected boolean SnipingSpot_Set
protected Item ItemInstance
protected boolean ItemInstance_Set
protected Map<UnrealId,NavPointNeighbourLink> OutgoingEdges
protected boolean OutgoingEdges_Set
protected Map<UnrealId,NavPointNeighbourLink> IncomingEdges
protected boolean IncomingEdges_Set
protected String PreferedWeapon
protected boolean PreferedWeapon_Set
| Constructor Detail |
|---|
public NavPointMessage()
public NavPointMessage(UnrealId Id,
Location Location,
Velocity Velocity,
boolean Visible,
UnrealId Item,
ItemType ItemClass,
boolean ItemSpawned,
boolean DoorOpened,
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,
Rotation Rotation,
boolean RoamingSpot,
boolean SnipingSpot,
Item ItemInstance,
Map<UnrealId,NavPointNeighbourLink> OutgoingEdges,
Map<UnrealId,NavPointNeighbourLink> IncomingEdges,
String PreferedWeapon)
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.public NavPointMessage(NavPointMessage original)
original - | Method Detail |
|---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
NavPoint
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class NavPointpublic Location getLocation()
NavPoint
getLocation in interface ILocatedgetLocation in class NavPointpublic Velocity getVelocity()
NavPoint
getVelocity in interface ILocomotivegetVelocity in class NavPointpublic boolean isVisible()
NavPoint
isVisible in interface IViewableisVisible in class NavPointpublic UnrealId getItem()
NavPoint
getItem in class NavPointpublic ItemType getItemClass()
NavPoint
getItemClass in class NavPointpublic boolean isItemSpawned()
NavPoint
isItemSpawned in class NavPointpublic boolean isDoorOpened()
NavPoint
isDoorOpened in class NavPointpublic UnrealId getMover()
NavPoint
getMover in class NavPointpublic javax.vecmath.Vector3d getLiftOffset()
NavPoint
getLiftOffset in class NavPointpublic boolean isLiftJumpExit()
NavPoint
isLiftJumpExit in class NavPointpublic boolean isNoDoubleJump()
NavPoint
isNoDoubleJump in class NavPointpublic boolean isInvSpot()
NavPoint
isInvSpot in class NavPointpublic boolean isPlayerStart()
NavPoint
isPlayerStart in class NavPointpublic int getTeamNumber()
NavPoint
getTeamNumber in class NavPointpublic boolean isDomPoint()
NavPoint
isDomPoint in class NavPointpublic int getDomPointController()
NavPoint
getDomPointController in class NavPointpublic boolean isDoor()
NavPoint
isDoor in class NavPointpublic boolean isLiftCenter()
NavPoint
isLiftCenter in class NavPointpublic boolean isLiftExit()
NavPoint
isLiftExit in class NavPointpublic boolean isAIMarker()
NavPoint
isAIMarker in class NavPointpublic boolean isJumpSpot()
NavPoint
isJumpSpot in class NavPointpublic boolean isJumpPad()
NavPoint
isJumpPad in class NavPointpublic boolean isJumpDest()
NavPoint
isJumpDest in class NavPointpublic boolean isTeleporter()
NavPoint
isTeleporter in class NavPointpublic Rotation getRotation()
NavPoint
getRotation in class NavPointpublic boolean isRoamingSpot()
NavPoint
isRoamingSpot in class NavPointpublic boolean isSnipingSpot()
NavPoint
isSnipingSpot in class NavPointpublic Item getItemInstance()
NavPoint
getItemInstance in class NavPointpublic Map<UnrealId,NavPointNeighbourLink> getOutgoingEdges()
NavPoint
getOutgoingEdges in class NavPointpublic Map<UnrealId,NavPointNeighbourLink> getIncomingEdges()
NavPoint
getIncomingEdges in class NavPointpublic String getPreferedWeapon()
NavPoint
getPreferedWeapon in class NavPointpublic NavPointLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic NavPointShared getShared()
getShared in interface ICompositeWorldObjectpublic NavPointStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class NavPointpublic String toHtmlString()
toHtmlString in class NavPointpublic void setItemInstance(Item item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||