Package com.epicbot.api.shared.entity
Interface Actor
-
- All Superinterfaces:
Actionable
,Animable
,Clickable
,GameEntity
,Identifiable
,Interactable
,Locatable
,LocatableEntity
,Modeled
,Nameable
,Renderable
,Rotatable
,Validatable
public interface Actor extends GameEntity, Rotatable, Animable, Identifiable, Nameable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tile
getDestination()
Gets the walking destination of this actor.int
getHealthPercent()
Gets the health of this actor.int
getHeight()
Gets the height of the actor.int[]
getHitsplatCycles()
int[]
getHitsplatTypes()
int[]
getHitsplatValues()
Actor
getInteracting()
Gets the actor that this actor is interacting with (e.g.java.lang.String
getMessage()
Gets the dialogue/message above this actors head.int
getPathSize()
int[]
getPathX()
int[]
getPathY()
Tile
getServerLocation()
int[]
getSpecialHitsplatValues()
Direction
getWalkingDirection()
Gets the direction we are walking towards.default boolean
isAttacking()
Gets whether or not this actor is attacking.default boolean
isDead()
Gets whether or not this actor is dead.boolean
isInCombat()
Gets whether or not this actor is in combat.boolean
isInteractingWithMe()
Gets whether or not this actor is interacting with the local player.boolean
isMoving()
Gets whether or not this actor is moving.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Animable
getAnimation, getIdleAnimation, isAnimating
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hover
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getId
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interact, interactMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Locatable
canReach, canReach, canReach, derive, derive, distanceTo, distanceTo, getArea, getArea, getLocation, getMapPoint, getPlane, getSceneOffset, getX, getY, isOnMap, randomize, randomize, randomize
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Modeled
getModel, getModelHeight, getModelId
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Rotatable
getDirection, getRotation, isFacing, isFacingMe
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
-
-
-
Method Detail
-
getMessage
java.lang.String getMessage()
Gets the dialogue/message above this actors head.- Returns:
- String or null if no message
-
getHealthPercent
int getHealthPercent()
Gets the health of this actor.- Returns:
- the health percentage. If the health cannot be determined (e.g. not in combat), then 100 is returned.
-
isDead
default boolean isDead()
Gets whether or not this actor is dead. If the health could not be determined (no visible healthbar), then this will return false.- Returns:
- true if dead, false otherwise
-
isMoving
boolean isMoving()
Gets whether or not this actor is moving.- Returns:
- true if moving, false otherwise
-
isInCombat
boolean isInCombat()
Gets whether or not this actor is in combat.- Returns:
- true if in combat, false otherwise
-
isAttacking
default boolean isAttacking()
Gets whether or not this actor is attacking. This is basically a convenience method for the conditionsisInCombat()
andgetInteracting()
not being null.- Returns:
- true if we are attacking, false otherwise
-
getHitsplatCycles
int[] getHitsplatCycles()
-
getHitsplatTypes
int[] getHitsplatTypes()
-
getHitsplatValues
int[] getHitsplatValues()
-
getSpecialHitsplatValues
int[] getSpecialHitsplatValues()
-
getInteracting
Actor getInteracting()
Gets the actor that this actor is interacting with (e.g. talking or attacking)- Returns:
- the actor or null if this actor is not interacting
-
isInteractingWithMe
boolean isInteractingWithMe()
Gets whether or not this actor is interacting with the local player.- Returns:
- true if interacting with local player, false otherwise
-
getHeight
int getHeight()
Gets the height of the actor.- Returns:
- int
-
getServerLocation
Tile getServerLocation()
-
getDestination
Tile getDestination()
Gets the walking destination of this actor.- Returns:
- the destination tile or null
-
getPathSize
int getPathSize()
-
getPathX
int[] getPathX()
-
getPathY
int[] getPathY()
-
getWalkingDirection
Direction getWalkingDirection()
Gets the direction we are walking towards.- Returns:
- the direction or null if we are not walking
-
-