From 2add5e583ad5e54c997b4d3a6e1dda2992b52854 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Thu, 8 Mar 2018 12:39:55 +0100 Subject: [PATCH] commentaar substractPoints(double angle) --- OGP1718-Worms/src/worms/model/Worm.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {