Class NpcVertex
- java.lang.Object
-
- com.runemate.game.api.hybrid.location.navigation.web.WebVertex
-
- com.runemate.game.api.hybrid.location.navigation.web.vertex_types.npcs.NpcVertex
-
- All Implemented Interfaces:
Locatable
,FilterableVertex<Npc>
,SerializableVertex
,Usable
,java.io.Serializable
- Direct Known Subclasses:
BasicNpcVertex
,DialogNpcVertex
,GnomeGliderVertex
public abstract class NpcVertex extends WebVertex implements FilterableVertex<Npc>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.location.navigation.web.WebVertex
AVATAR, AVATAR_POS, GAMEOBJECT_CACHE, INDEX_IN_STEPS, ITEM_CACHE, NPC_CACHE, PREFERS_VIEWPORT, PREVIOUS, REACHABLE, REGION, REGION_BASE, STEPS
-
-
Constructor Summary
Constructors Constructor Description NpcVertex(Area walkingBounds, java.util.Collection<WebRequirement> requirements)
NpcVertex(Coordinate position, java.util.Collection<WebRequirement> requirements)
NpcVertex(Coordinate position, java.util.Collection<WebRequirement> requirements, java.util.Collection<WebRequirement> forbiddingRequirements, int protocol, java.io.ObjectInput stream)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Npc
getNpc()
Area
getWalkingBounds()
Gets the bounds of the Area that the npc can be withinvoid
setProvider(java.util.List<Npc> provider)
boolean
step(boolean prefersViewport)
-
Methods inherited from class com.runemate.game.api.hybrid.location.navigation.web.WebVertex
addBidirectionalEdge, addBidirectionalEdge, addDirectedEdge, addDirectedEdge, equals, getArea, getBlockingConditions, getDefaultWeightBetween, getDefaultWeightTo, getHighPrecisionPosition, getInputCost, getInputCosts, getInputs, getOutputCost, getOutputCosts, getOutputs, getPosition, getRequirements, hashCode, isIsolated, isUsable, removeBidirectionalEdge, removeDirectedEdge, removeEdges, step, substitute, toString
-
Methods inherited from interface com.runemate.game.api.hybrid.location.navigation.web.vertex_types.FilterableVertex
getFilter, invalidateCache
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.location.navigation.web.vertex_types.SerializableVertex
deserialize, getOpcode, serialize
-
-
-
-
Constructor Detail
-
NpcVertex
public NpcVertex(Area walkingBounds, java.util.Collection<WebRequirement> requirements)
-
NpcVertex
public NpcVertex(Coordinate position, java.util.Collection<WebRequirement> requirements)
-
NpcVertex
public NpcVertex(Coordinate position, java.util.Collection<WebRequirement> requirements, java.util.Collection<WebRequirement> forbiddingRequirements, int protocol, java.io.ObjectInput stream)
-
-
Method Detail
-
getWalkingBounds
public Area getWalkingBounds()
Gets the bounds of the Area that the npc can be within
-
setProvider
public void setProvider(java.util.List<Npc> provider)
- Specified by:
setProvider
in interfaceFilterableVertex<Npc>
-
getNpc
public abstract Npc getNpc()
-
-