Package 

Interface Explosion

  • All Implemented Interfaces:

    
    public interface Explosion
    
                        

    Interface detailing what explosions need to include.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit applyBlastImpulse(Double blastPower) Applies a blast impulse to the effected bodies.
      abstract Unit update(ArrayList<TranslatableBody> bodiesToEvaluate) Updates the arraylist to reevaluate what objects are effected/within the proximity.
      abstract Unit setEpicentre(Vec2 v) Sets the epicentre to a different coordinate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • applyBlastImpulse

         abstract Unit applyBlastImpulse(Double blastPower)

        Applies a blast impulse to the effected bodies.

        Parameters:
        blastPower - The impulse magnitude.
      • update

         abstract Unit update(ArrayList<TranslatableBody> bodiesToEvaluate)

        Updates the arraylist to reevaluate what objects are effected/within the proximity.

        Parameters:
        bodiesToEvaluate - Arraylist of bodies in the world to check.
      • setEpicentre

         abstract Unit setEpicentre(Vec2 v)

        Sets the epicentre to a different coordinate.

        Parameters:
        v - The vector position of the new epicentre.