Package com.epicbot.api.shared.entity
Interface Projectile
-
- All Superinterfaces:
Identifiable
,Locatable
,LocatableEntity
,Modeled
,Renderable
,Validatable
public interface Projectile extends LocatableEntity, Identifiable
A moving entity that is targeting anActor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEndHeight()
Gets the end height.int
getGameCycleEnd()
The end time at which this projectile reached its target.int
getGameCycleStart()
The time at which this projectile was fired.int
getStartHeight()
Gets the start height.Tile
getStartLocation()
The start tile of the projectile.Actor
getTarget()
The character that this projectile is targeting.boolean
isTargetingMe()
Gets whether or not this projectile is targeting me.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getId
-
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.Validatable
isValid
-
-
-
-
Method Detail
-
getGameCycleStart
int getGameCycleStart()
The time at which this projectile was fired.- Returns:
- int
- See Also:
IGameAPI.getGameCycle()
-
getGameCycleEnd
int getGameCycleEnd()
The end time at which this projectile reached its target.- Returns:
- int
- See Also:
IGameAPI.getGameCycle()
-
getStartHeight
int getStartHeight()
Gets the start height.- Returns:
- int
-
getEndHeight
int getEndHeight()
Gets the end height.- Returns:
- int
-
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
-
-