|
||||||||||
| 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.NavPointCompositeImpl
public class NavPointCompositeImpl
Composite implementation of the NAV abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint |
|---|
NavPoint.NavPointUpdate, NavPoint.ObjectDisappeared |
| Field Summary | |
|---|---|
protected NavPointLocalImpl |
partLocal
|
protected NavPointStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
NavPointCompositeImpl()
Parameter-less contructor for the message. |
|
NavPointCompositeImpl(NavPointCompositeImpl original)
Cloning constructor. |
|
NavPointCompositeImpl(NavPointLocalImpl partLocal,
NavPointSharedImpl partShared,
NavPointStaticImpl partStatic)
Composite-impl constructor. |
|
| 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()
|
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()
|
NavPointStatic |
getStatic()
|
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 |
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.ut2004.communication.messages.gbinfomessages.NavPoint |
|---|
createDisappearEvent, getSimTime, toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected NavPointStaticImpl partStatic
protected NavPointLocalImpl partLocal
| Constructor Detail |
|---|
public NavPointCompositeImpl()
public NavPointCompositeImpl(NavPointLocalImpl partLocal,
NavPointSharedImpl partShared,
NavPointStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic NavPointCompositeImpl(NavPointCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
NavPoint
setSimTime in class NavPointpublic NavPointStatic getStatic()
public NavPointLocal getLocal()
public NavPointShared getShared()
public UnrealId getId()
NavPoint
getId in interface IWorldObjectgetId 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 String toString()
toString in class NavPointpublic String toHtmlString()
toHtmlString in class NavPoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||