Interface Projectile

All Superinterfaces:
Identifiable, Locatable, LocatableEntity, Modeled, Renderable, Validatable

public interface Projectile extends LocatableEntity, Identifiable
A moving entity that is targeting an Actor.
  • 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