From 95dff9397baf44c2b9b224851a13b7fec408e348 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 11 Nov 2014 11:17:20 +0100 Subject: [PATCH] Remove default Explosion from LivingEntity. Every Entity has to override explode() itself, otherwise it will just not explode. --- src/de/teamteamteam/spacescooter/entity/LivingEntity.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/teamteamteam/spacescooter/entity/LivingEntity.java b/src/de/teamteamteam/spacescooter/entity/LivingEntity.java index f187ecf..ed034a6 100644 --- a/src/de/teamteamteam/spacescooter/entity/LivingEntity.java +++ b/src/de/teamteamteam/spacescooter/entity/LivingEntity.java @@ -3,7 +3,6 @@ package de.teamteamteam.spacescooter.entity; import java.awt.Rectangle; import de.teamteamteam.spacescooter.entity.enemy.Enemy; -import de.teamteamteam.spacescooter.entity.explosion.ExplosionTwo; import de.teamteamteam.spacescooter.entity.shot.Shot; import de.teamteamteam.spacescooter.entity.spi.Collidable; import de.teamteamteam.spacescooter.entity.spi.Hittable; @@ -121,9 +120,7 @@ public abstract class LivingEntity extends Entity implements Collidable, Hittabl * The default way the LivingEntity explodes. * Override this method for a different explosion behaviour. */ - public void explode() { - new ExplosionTwo(this.getX(), this.getY()); - } + public void explode() {} /** * The default way the LivingEntity dies.