diff --git a/OGP1718-Worms/src/worms/model/Worm.java b/OGP1718-Worms/src/worms/model/Worm.java index d8860f8..06f7686 100644 --- a/OGP1718-Worms/src/worms/model/Worm.java +++ b/OGP1718-Worms/src/worms/model/Worm.java @@ -372,9 +372,13 @@ public class Worm { } /** - * + * substract the current points of the worm * * @param angle + * the angle needed to calculate the new current points + * @post the current points are set to the old current points minus + * the angle (in degrees) divided by 6 + * |setPoints(this.points - (int) ceil(toDegrees(angle) / 6)) */ private void subtractPoints (double angle) {