Package org.rspeer.game.adapter.scene
Class PathingEntity<P extends RSPathingEntity>
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<P>
-
- org.rspeer.game.adapter.scene.Entity<P>
-
- org.rspeer.game.adapter.scene.PathingEntity<P>
-
- All Implemented Interfaces:
Actionable
,Animable
,Identifiable
,Interactable
,Mobile
,Nameable
,SceneNode
public abstract class PathingEntity<P extends RSPathingEntity> extends Entity<P> implements Nameable, Identifiable, Animable, Mobile
-
-
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
-
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, getActions, getRawActions, getSubMenuActions
-
Methods inherited from interface org.rspeer.game.adapter.type.Animable
getAnimationId, isAnimating, isIdle
-
Methods inherited from interface org.rspeer.game.adapter.type.Identifiable
getId
-
Methods inherited from interface org.rspeer.game.adapter.type.Interactable
actionOf, actionOf, interact, interact, interact, interact, interact
-
Methods inherited from interface org.rspeer.game.adapter.type.SceneNode
distance, distance, distance, distance, getArea, getEntityPositionHeight, getEntityPositionWidth, getFloorLevel, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Method Detail
-
getOverheadPrayers
public abstract List<OverheadPrayer> getOverheadPrayers()
-
getAnimation
public Animation getAnimation()
- Specified by:
getAnimation
in interfaceAnimable
-
getStance
public Animation getStance()
-
getStanceId
public int getStanceId()
-
getMatrixId
public int getMatrixId()
-
getEffect
@Deprecated public Animation getEffect()
Deprecated.
-
getLastHitsplatTick
public int getLastHitsplatTick(int type)
-
getLastHitsplatTick
public int getLastHitsplatTick(Hitsplat.Type type)
-
getOrientation
public int getOrientation()
-
getPreciseOrientation
public int getPreciseOrientation()
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in interfaceSceneNode
- Specified by:
getPosition
in classEntity<P extends RSPathingEntity>
-
getModelPosition
public Position getModelPosition()
- Overrides:
getModelPosition
in classEntity<P extends RSPathingEntity>
-
getServerPosition
@Deprecated public Position getServerPosition()
Deprecated.
-
getDirection
public Direction getDirection()
-
getPreciseDirection
public Direction getPreciseDirection()
-
getTargetIndex
public int getTargetIndex()
-
getOverheadText
public String getOverheadText()
-
getHeadbar
public RSHealthBar getHeadbar(int id)
-
getHealthBar
public RSHealthBar getHealthBar()
-
getHealthPercent
public int getHealthPercent()
Note: This method will only return correctly when the health bar is present. For local player health it is recommended that you use the Health class instead- Returns:
- The current health percent
-
getHeadbarPercent
public int getHeadbarPercent(int headbar)
-
isDying
public boolean isDying()
-
getTarget
public PathingEntity<?> getTarget()
-
getIndex
public int getIndex()
-
isHealthBarVisible
public boolean isHealthBarVisible()
-
getModel
public CachedModel getModel()
- Overrides:
getModel
in classEntity<P extends RSPathingEntity>
-
-