-
- All Implemented Interfaces:
public interface Explosion
Interface detailing what explosions need to include.
-
-
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. -
-
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.
-
-
-
-