Interface Projectile

  • All Superinterfaces:
    Node, Renderable

    public interface Projectile
    extends Renderable
    Represents a projectile entity (ie. cannonball, arrow).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getEndCycle()
      Gets the game cycle that the projectile will reach its target at.
      int getEndHeight()
      Gets the ending height of the projectile.
      int getFloor()
      Gets the plane that the projectile is on.
      int getHeight()
      Gets the height of the projectile.
      int getId()
      Gets the ID of the projectile.
      int getRemainingCycles()
      Gets the remaining game cycles until the projectile reaches its target and despawns.
      double getScalar()
      Gets the scalar quantity (speed) at which the projectile is travelling.
      int getSlope()
      Gets the slope of the projectile.
      int getStartHeight()
      Gets the starting height of the projectile.
      int getStartMovementCycle()
      Gets the game cycle that the projectile begun movement at.
      double getVelocityX()
      Gets the x-axis velocity of the projectile.
      double getVelocityY()
      Gets the y-axis velocity of the projectile.
      double getVelocityZ()
      Gets the z-axis velocity of the projectile.
      double getX()
      Gets the current x-axis coordinate of the projectile.
      int getX1()
      Gets the original x-axis coordinate that this projectile started from.
      double getY()
      Gets the current y-axis coordinate of the projectile.
      int getY1()
      Gets the original y-axis coordinate that this projectile started from.
      double getZ()
      Gets the current z-axis coordinate of the projectile.
    • Method Detail

      • getId

        int getId()
        Gets the ID of the projectile.
        Returns:
        the projectile ID
        See Also:
        ProjectileID
      • getX1

        int getX1()
        Gets the original x-axis coordinate that this projectile started from.
        Returns:
        the original coordinate
      • getY1

        int getY1()
        Gets the original y-axis coordinate that this projectile started from.
        Returns:
        the original coordinate
      • getFloor

        int getFloor()
        Gets the plane that the projectile is on.
        Returns:
        the plane
      • getHeight

        int getHeight()
        Gets the height of the projectile.
        Returns:
        the height
      • getEndHeight

        int getEndHeight()
        Gets the ending height of the projectile.
        Returns:
        the ending height
      • getStartMovementCycle

        int getStartMovementCycle()
        Gets the game cycle that the projectile begun movement at.
        Returns:
        the start game cycle
      • getEndCycle

        int getEndCycle()
        Gets the game cycle that the projectile will reach its target at.
        Returns:
        the end game cycle
      • getRemainingCycles

        int getRemainingCycles()
        Gets the remaining game cycles until the projectile reaches its target and despawns.
        Returns:
        the remaining game cycles
      • getSlope

        int getSlope()
        Gets the slope of the projectile.

        This value indicates how much arc the projectile can have. Projectiles with larger slopes have a more noticeable arc when thrown.

        Returns:
        the slope of the projectile
      • getStartHeight

        int getStartHeight()
        Gets the starting height of the projectile.
        Returns:
        the starting height
      • getX

        double getX()
        Gets the current x-axis coordinate of the projectile.
        Returns:
        the x-axis coordinate
      • getY

        double getY()
        Gets the current y-axis coordinate of the projectile.
        Returns:
        the y-axis coordinate
      • getZ

        double getZ()
        Gets the current z-axis coordinate of the projectile.
        Returns:
        the z-axis coordinate
      • getScalar

        double getScalar()
        Gets the scalar quantity (speed) at which the projectile is travelling.
        Returns:
        the scalar quantity
      • getVelocityX

        double getVelocityX()
        Gets the x-axis velocity of the projectile.
        Returns:
        the x-axis velocity
      • getVelocityY

        double getVelocityY()
        Gets the y-axis velocity of the projectile.
        Returns:
        the y-axis velocity
      • getVelocityZ

        double getVelocityZ()
        Gets the z-axis velocity of the projectile.
        Returns:
        the z-axis velocity