diff --git a/OGP1718-Worms/src/worms/model/Projectile.java b/OGP1718-Worms/src/worms/model/Projectile.java index cea10f9..30b3233 100644 --- a/OGP1718-Worms/src/worms/model/Projectile.java +++ b/OGP1718-Worms/src/worms/model/Projectile.java @@ -128,8 +128,7 @@ public abstract class Projectile extends GameObject { double a = getOrientation(); Coordinate newLocation; - - //TODO extra parameter if: als de worm die wil schieten tegen een andere worm staat: + //TODO In case the initial position of a projectile already hits impassable terrain or a worm, the projectile will //TODO jump over a distance of 0.0 m. if (getWorld().isAdjacent(getLocation(),getRadius())) { @@ -153,7 +152,6 @@ public abstract class Projectile extends GameObject { wormLocation.getY() + sin(wormOrientation) * (wormRadius + radius)); } - //TODO hit impassable terrain (adjacent, partly or complete): projectile stays at that position public void hit(Worm... worm){ for (Worm wormA : worm){ //TODO bazooka: hitpoints multiplied with force?