public abstract class NavPoint extends InfoMessage implements IWorldEvent, IWorldChangeEvent, ICompositeWorldObject, ILocated, ILocomotive, IGBViewable
Modifier and Type | Class and Description |
---|---|
static class |
NavPoint.NavPointUpdate |
static class |
NavPoint.ObjectDisappeared |
Modifier and Type | Field and Description |
---|---|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected long |
SimTime |
Constructor and Description |
---|
NavPoint()
Parameter-less contructor for the message.
|
Modifier and Type | Method and Description |
---|---|
IWorldObjectUpdatedEvent |
createDisappearEvent()
Creates an update event that has to update visibility to false.
|
abstract int |
getDomPointController()
Exported if this NavPoint is a DominationPoint (for BotDoubleDomination game) - which team controls this point.
|
abstract UnrealId |
getId()
A unique Id of this navigation point assigned by the game.
|
abstract 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).
|
abstract UnrealId |
getItem()
Unique Id of the respawned item (the item respawns at this
point).
|
abstract ItemType |
getItemClass()
Class of the item (e.g.
|
abstract Item |
getItemInstance()
If item should be present at this navpoint it's instance will be here.
|
abstract javax.vecmath.Vector3d |
getLiftOffset()
Starting vector between MyLift location and LiftCenter location.
|
abstract Location |
getLocation()
Location of navigation point.
|
abstract UnrealId |
getMover()
If this NavPoint is marking some mover, the mover id will be here.
|
abstract 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).
|
abstract String |
getPreferedWeapon()
Class of the weapon that should be prefered when using this
point for AIMarker specified action.
|
abstract Rotation |
getRotation()
If the type is AIMarker.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
abstract int |
getTeamNumber()
Will be sent if this is a player start.
|
abstract Velocity |
getVelocity()
Velocity of the navigation point (if the navigation point is
currently moving).
|
abstract boolean |
isAIMarker()
If this point is an AI marker - marks an interesting spot in the environment.
|
abstract boolean |
isDomPoint()
If this point marks a DominationPoint (for BotDoubleDomination game).
|
abstract boolean |
isDoor()
If this point marks a door mover.
|
abstract boolean |
isDoorOpened()
True if this NavPoint is a Door and door is opened.
|
abstract boolean |
isInvSpot()
If this is an inventory spot (item is respawned at this point).
|
abstract boolean |
isItemSpawned()
True if the item is spawned at the point.
|
abstract boolean |
isJumpDest()
If this point marks a jump destination - some place that can be reached by some special jump.
|
abstract boolean |
isJumpPad()
If this point marks a jump pad (a special device that causes the bot to jump high or far).
|
abstract boolean |
isJumpSpot()
If this point marks a jump spot (a special device that causes the bot to jump high or far).
|
abstract 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).
|
abstract boolean |
isLiftExit()
If this point marks a lift exit (used to mark exit point of a lift mover).
|
abstract boolean |
isLiftJumpExit()
Boolean.
|
abstract boolean |
isNoDoubleJump()
Boolean.
|
abstract boolean |
isPlayerStart()
If this is a player start (players and/or bots are respawned at this point).
|
abstract boolean |
isRoamingSpot()
Some ambush point, where is good chance to intercept
approaching opponents.
|
abstract boolean |
isSnipingSpot()
Point good for sniping.
|
abstract boolean |
isTeleporter()
If this point marks a teleport.
|
abstract boolean |
isVisible()
If the point is in the field of view of the bot.
|
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toJsonLiteral() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocal, getShared, getStatic
public static final String PROTOTYPE
protected long SimTime
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in interface IWorldObject
protected void setSimTime(long SimTime)
public abstract UnrealId getId()
getId
in interface IWorldObject
public abstract Location getLocation()
getLocation
in interface ILocated
public abstract Velocity getVelocity()
getVelocity
in interface ILocomotive
public abstract boolean isVisible()
public abstract UnrealId getItem()
public abstract ItemType getItemClass()
public abstract boolean isItemSpawned()
public abstract boolean isDoorOpened()
public abstract UnrealId getMover()
public abstract javax.vecmath.Vector3d getLiftOffset()
public abstract boolean isLiftJumpExit()
public abstract boolean isNoDoubleJump()
public abstract boolean isInvSpot()
public abstract boolean isPlayerStart()
public abstract int getTeamNumber()
public abstract boolean isDomPoint()
public abstract int getDomPointController()
public abstract boolean isDoor()
public abstract boolean isLiftCenter()
public abstract boolean isLiftExit()
public abstract boolean isAIMarker()
public abstract boolean isJumpSpot()
public abstract boolean isJumpPad()
public abstract boolean isJumpDest()
public abstract boolean isTeleporter()
public abstract Rotation getRotation()
public abstract boolean isRoamingSpot()
public abstract boolean isSnipingSpot()
public abstract Item getItemInstance()
public abstract Map<UnrealId,NavPointNeighbourLink> getOutgoingEdges()
public abstract Map<UnrealId,NavPointNeighbourLink> getIncomingEdges()
public abstract String getPreferedWeapon()
public IWorldObjectUpdatedEvent createDisappearEvent()
IGBViewable
createDisappearEvent
in interface IGBViewable
public String toString()
toString
in class InfoMessage
public String toHtmlString()
public String toJsonLiteral()
toJsonLiteral
in class InfoMessage
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.