Package org.rspeer.game.adapter.scene
Class Npc
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<P>
-
- org.rspeer.game.adapter.scene.Entity<P>
-
- org.rspeer.game.adapter.scene.PathingEntity<RSNpc>
-
- org.rspeer.game.adapter.scene.Npc
-
- All Implemented Interfaces:
Actionable,Animable,Defined<RSNpcDefinition,NpcDefinition>,Identifiable,Interactable,Mobile,Nameable,SceneNode
public final class Npc extends PathingEntity<RSNpc> implements Defined<RSNpcDefinition,NpcDefinition>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Actionable
Actionable.Query<Q extends Actionable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Animable
Animable.Query<Q extends Animable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Identifiable
Identifiable.Query<Q extends Identifiable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Mobile
Mobile.Query<Q extends Mobile.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Nameable
Nameable.Query<Q extends Nameable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.SceneNode
SceneNode.Query<Q extends SceneNode.Query<Q>>
-
-
Constructor Summary
Constructors Constructor Description Npc(RSNpc provider, RSWorldMatrix matrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NpcActionactionOf(String action)List<String>getActions()NpcDefinitiongetDefinition()intgetEntityPositionHeight()intgetEntityPositionWidth()intgetId()StringgetName()StringgetNameOverride()List<OverheadPrayer>getOverheadPrayers()List<Integer>getOverheads()List<Integer>getOverheads(boolean sprites)StringgetOverheadText()intgetParameter(int parameter)intgetParameter(NpcParameter parameter)String[]getRawActions()booleanisActionEnabled(int index)booleanisActionEnabled(String action)-
Methods inherited from class org.rspeer.game.adapter.scene.PathingEntity
equals, getAnimation, getAnimationFrame, getAnimationId, getCoord, getCoordFine, getDirection, getEffect, getEffects, getHeadbar, getHeadbarPercent, getHeadbarPercent, getHeadbars, getHealthBar, getHealthPercent, getIndex, getLastHitsplatTick, getLastHitsplatTick, getMatrixId, getModel, getModelPosition, getOrientation, getPosition, getServerPosition, getStance, getStanceId, getTarget, getTargetIndex, hashCode, isDying, isHealthBarVisible, isMoving
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction, getSubMenuActions
-
Methods inherited from interface org.rspeer.game.adapter.type.Animable
isAnimating, isIdle
-
Methods inherited from interface org.rspeer.game.adapter.type.Interactable
actionOf, interact, interact, interact, interact, interact
-
Methods inherited from interface org.rspeer.game.adapter.type.SceneNode
distance, distance, distance, distance, getArea, getCoordArea, getCoordView, getFloorLevel, getSceneContext, getWorldEntity, getWorldEntity, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Constructor Detail
-
Npc
public Npc(RSNpc provider, RSWorldMatrix matrix)
-
-
Method Detail
-
getDefinition
public NpcDefinition getDefinition()
- Specified by:
getDefinitionin interfaceDefined<RSNpcDefinition,NpcDefinition>
-
getParameter
public int getParameter(int parameter)
-
getParameter
public int getParameter(NpcParameter parameter)
-
getId
public int getId()
- Specified by:
getIdin interfaceIdentifiable
-
getEntityPositionHeight
public int getEntityPositionHeight()
- Specified by:
getEntityPositionHeightin interfaceSceneNode
-
getEntityPositionWidth
public int getEntityPositionWidth()
- Specified by:
getEntityPositionWidthin interfaceSceneNode
-
getNameOverride
public String getNameOverride()
-
getOverheadPrayers
public List<OverheadPrayer> getOverheadPrayers()
- Specified by:
getOverheadPrayersin classPathingEntity<RSNpc>
-
getOverheadText
public String getOverheadText()
- Overrides:
getOverheadTextin classPathingEntity<RSNpc>
-
getRawActions
public String[] getRawActions()
- Specified by:
getRawActionsin interfaceActionable
-
getActions
public List<String> getActions()
- Specified by:
getActionsin interfaceActionable
-
isActionEnabled
public boolean isActionEnabled(int index)
-
isActionEnabled
public boolean isActionEnabled(String action)
-
actionOf
public NpcAction actionOf(String action)
- Specified by:
actionOfin interfaceInteractable
-
-