Package org.rspeer.game.adapter.scene
Class 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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getId()
getName()
getOverheads
(boolean sprites) String[]
Methods inherited from class org.rspeer.game.adapter.scene.PathingEntity
equals, getAnimation, getDirection, getEffect, getEffects, getHealthBar, getHealthPercent, getIndex, getMatrixId, getOrientation, getPosition, getPreciseDirection, getPreciseOrientation, getServerPosition, getStance, getTarget, getTargetIndex, isDying, isHealthBarVisible, isMoving
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction
Methods inherited from interface org.rspeer.game.adapter.type.Animable
getAnimationId, isAnimating
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 Details
-
Npc
-
-
Method Details
-
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
-
getName
-
getNameOverride
-
getOverheads
-
getOverheads
-
getOverheadText
- Overrides:
getOverheadText
in classPathingEntity<RSNpc>
-
getRawActions
- Specified by:
getRawActions
in interfaceActionable
-
getActions
- Specified by:
getActions
in interfaceActionable
-
actionOf
- Specified by:
actionOf
in interfaceInteractable
-