|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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. 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 |
---|
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. |
java.util.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. |
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. |
java.util.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). |
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. |
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 |
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 |
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 |
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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint |
---|
createDisappearEvent, getSimTime |
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 NavPoint
public NavPointStatic getStatic()
public NavPointLocal getLocal()
public NavPointShared getShared()
public UnrealId getId()
NavPoint
getId
in interface IWorldObject
getId
in class NavPoint
public Location getLocation()
NavPoint
getLocation
in interface ILocated
getLocation
in class NavPoint
public Velocity getVelocity()
NavPoint
getVelocity
in interface ILocomotive
getVelocity
in class NavPoint
public boolean isVisible()
NavPoint
isVisible
in interface IViewable
isVisible
in class NavPoint
public boolean isReachable()
NavPoint
isReachable
in class NavPoint
public UnrealId getItem()
NavPoint
getItem
in class NavPoint
public ItemType getItemClass()
NavPoint
getItemClass
in class NavPoint
public boolean isItemSpawned()
NavPoint
isItemSpawned
in class NavPoint
public boolean isDoorOpened()
NavPoint
isDoorOpened
in class NavPoint
public UnrealId getMover()
NavPoint
getMover
in class NavPoint
public Vector3d getLiftOffset()
NavPoint
getLiftOffset
in class NavPoint
public boolean isLiftJumpExit()
NavPoint
isLiftJumpExit
in class NavPoint
public boolean isNoDoubleJump()
NavPoint
isNoDoubleJump
in class NavPoint
public boolean isInvSpot()
NavPoint
isInvSpot
in class NavPoint
public boolean isPlayerStart()
NavPoint
isPlayerStart
in class NavPoint
public int getTeamNumber()
NavPoint
getTeamNumber
in class NavPoint
public boolean isDomPoint()
NavPoint
isDomPoint
in class NavPoint
public int getDomPointController()
NavPoint
getDomPointController
in class NavPoint
public boolean isDoor()
NavPoint
isDoor
in class NavPoint
public boolean isLiftCenter()
NavPoint
isLiftCenter
in class NavPoint
public boolean isLiftExit()
NavPoint
isLiftExit
in class NavPoint
public boolean isAIMarker()
NavPoint
isAIMarker
in class NavPoint
public boolean isJumpSpot()
NavPoint
isJumpSpot
in class NavPoint
public boolean isJumpDest()
NavPoint
isJumpDest
in class NavPoint
public boolean isTeleporter()
NavPoint
isTeleporter
in class NavPoint
public Rotation getRotation()
NavPoint
getRotation
in class NavPoint
public boolean isRoamingSpot()
NavPoint
isRoamingSpot
in class NavPoint
public boolean isSnipingSpot()
NavPoint
isSnipingSpot
in class NavPoint
public Item getItemInstance()
NavPoint
getItemInstance
in class NavPoint
public java.util.Map<UnrealId,NavPointNeighbourLink> getOutgoingEdges()
NavPoint
getOutgoingEdges
in class NavPoint
public java.util.Map<UnrealId,NavPointNeighbourLink> getIncomingEdges()
NavPoint
getIncomingEdges
in class NavPoint
public java.lang.String getPreferedWeapon()
NavPoint
getPreferedWeapon
in class NavPoint
public java.lang.String toString()
toString
in class NavPoint
public java.lang.String toHtmlString()
toHtmlString
in class NavPoint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |