Interface ProjectileListener

  • All Superinterfaces:
    java.util.EventListener

    public interface ProjectileListener
    extends java.util.EventListener
    • Method Summary

      All Methods Instance Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void onTargeted​(Projectile projectile, Tile target)
      Deprecated.
      default void postTargeted​(Projectile projectile)
      This method is called every frame after the target method is run, this is post-tile movements Note that the target information is already set in Projectile creation, targeted method updates projectile location and target locations
      default void preTargeted​(Projectile projectile)
      This method is called every frame the target method is called, this is pre-tile movements Note that the target information is already set in Projectile creation, targeted method updates projectile location and target locations
    • Method Detail

      • onTargeted

        @Deprecated
        default void onTargeted​(Projectile projectile,
                                Tile target)
        Deprecated.
        This method is called once for fixed projectile locations, it is called every frame for entity targeted projectiles
        Parameters:
        projectile -
        target -
      • preTargeted

        default void preTargeted​(Projectile projectile)
        This method is called every frame the target method is called, this is pre-tile movements Note that the target information is already set in Projectile creation, targeted method updates projectile location and target locations
        Parameters:
        projectile -
      • postTargeted

        default void postTargeted​(Projectile projectile)
        This method is called every frame after the target method is run, this is post-tile movements Note that the target information is already set in Projectile creation, targeted method updates projectile location and target locations
        Parameters:
        projectile -