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>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NpcAction
actionOf(String action)
List<String>
getActions()
NpcDefinition
getDefinition()
int
getEntityPositionHeight()
int
getEntityPositionWidth()
int
getId()
String
getName()
String
getNameOverride()
List<OverheadPrayer>
getOverheadPrayers()
List<Integer>
getOverheads()
List<Integer>
getOverheads(boolean sprites)
String
getOverheadText()
String[]
getRawActions()
-
Methods inherited from class org.rspeer.game.adapter.scene.PathingEntity
equals, getAnimation, getDirection, getEffect, getEffects, getHeadbar, getHeadbarPercent, getHeadbarPercent, getHeadbars, getHealthBar, getHealthPercent, getIndex, getLastHitsplatTick, getLastHitsplatTick, getMatrixId, getModel, getModelPosition, getOrientation, getPosition, getPreciseDirection, getPreciseOrientation, 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
getAnimationId, 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, getFloorLevel, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Constructor Detail
-
Npc
public Npc(RSNpc provider)
-
-
Method Detail
-
getDefinition
public NpcDefinition getDefinition()
- Specified by:
getDefinition
in interfaceDefined<RSNpcDefinition,NpcDefinition>
-
getId
public int getId()
- Specified by:
getId
in interfaceIdentifiable
-
getEntityPositionHeight
public int getEntityPositionHeight()
- Specified by:
getEntityPositionHeight
in interfaceSceneNode
-
getEntityPositionWidth
public int getEntityPositionWidth()
- Specified by:
getEntityPositionWidth
in interfaceSceneNode
-
getNameOverride
public String getNameOverride()
-
getOverheadPrayers
public List<OverheadPrayer> getOverheadPrayers()
- Specified by:
getOverheadPrayers
in classPathingEntity<RSNpc>
-
getOverheadText
public String getOverheadText()
- Overrides:
getOverheadText
in classPathingEntity<RSNpc>
-
getRawActions
public String[] getRawActions()
- Specified by:
getRawActions
in interfaceActionable
-
getActions
public List<String> getActions()
- Specified by:
getActions
in interfaceActionable
-
actionOf
public NpcAction actionOf(String action)
- Specified by:
actionOf
in interfaceInteractable
-
-