Package com.epicbot.api.shared.entity
Interface Projectile
- All Superinterfaces:
Identifiable,Locatable,LocatableEntity,Modeled,Renderable,Validatable
A moving entity that is targeting an
Actor.-
Method Summary
Modifier and TypeMethodDescriptionThe end tile of the projectile.intThe end time at which this projectile reached its target.intThe time at which this projectile was fired.The start tile of the projectile.The character that this projectile is targeting.booleanGets whether or not this projectile is targeting me.Methods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods 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.Validatable
isValid
-
Method Details
-
getStartLocation
Tile getStartLocation()The start tile of the projectile.- Returns:
Tile
-
getEndLocation
Tile getEndLocation()The end tile of the projectile.- Returns:
Tile
-
getGameCycleStart
int getGameCycleStart()The time at which this projectile was fired.- Returns:
- int
- See Also:
-
getGameCycleEnd
int getGameCycleEnd()The end time at which this projectile reached its target.- Returns:
- int
- See Also:
-
getTarget
Actor getTarget()The character that this projectile is targeting.- Returns:
- the target or null
-
isTargetingMe
boolean isTargetingMe()Gets whether or not this projectile is targeting me.- Returns:
- true if targeting me, false otherwise
-