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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Animation
getAnimation()
Direction
getDirection()
Animation
getEffect()
Deprecated.List<Animation>
getEffects()
RSHealthBar
getHealthBar()
int
getHealthPercent()
Note: This method will only return correctly when the health bar is present.int
getIndex()
int
getLastHitsplatTick(int type)
int
getLastHitsplatTick(Hitsplat.Type type)
int
getMatrixId()
CachedModel
getModel()
Position
getModelPosition()
int
getOrientation()
String
getOverheadText()
Position
getPosition()
Direction
getPreciseDirection()
int
getPreciseOrientation()
Position
getServerPosition()
Deprecated.Animation
getStance()
int
getStanceId()
PathingEntity<?>
getTarget()
int
getTargetIndex()
boolean
isDying()
boolean
isHealthBarVisible()
boolean
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, getActions, getRawActions
-
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
-
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()
-
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
-
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>
-
-