Package com.epicbot.api.shared.entity
Interface Actor
- All Superinterfaces:
Actionable,Animable,Clickable,GameEntity,Identifiable,Interactable,Locatable,LocatableEntity,Modeled,Nameable,Renderable,Rotatable,Validatable
-
Method Summary
Modifier and TypeMethodDescriptionGets the walking destination of this actor.intGets the health of this actor.intgetHealthPercent(int id) Get the health of a healthbar with specified id.int[]int[]int[]Gets the actor that this actor is interacting with (e.g.Gets the dialogue/message above this actors head.intint[]getPathX()int[]getPathY()int[]Gets the direction we are walking towards.default booleanGets whether or not this actor is attacking.default booleanisDead()Gets whether or not this actor is dead.booleanGets whether or not this actor is in combat.booleanGets whether or not this actor is interacting with the local player.booleanisMoving()Gets whether or not this actor is moving.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Animable
getAnimation, getIdleAnimation, isAnimatingMethods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hoverMethods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interactMatchMethods 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, tileDistanceTo, tileDistanceToMethods inherited from interface com.epicbot.api.shared.entity.details.Modeled
getModelHeightMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisibleMethods inherited from interface com.epicbot.api.shared.entity.details.Rotatable
getDirection, getRotation, isFacing, isFacingMeMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
Method Details
-
getMessage
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.
-
getHealthPercent
int getHealthPercent(int id) Get the health of a healthbar with specified id.- Parameters:
id-- Returns:
- the health percentage or -1
-
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() -
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
-
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() -
getSpotAnimationIds
int[] getSpotAnimationIds() -
getWalkingDirection
Direction getWalkingDirection()Gets the direction we are walking towards.- Returns:
- the direction or null if we are not walking
-