From 3f87802dd69152e61b482da80a6e1172ca548a73 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Wed, 7 Mar 2018 20:11:30 +0100 Subject: [PATCH] aanpassing commentaar turn --- OGP1718-Worms/src/Worm.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/OGP1718-Worms/src/Worm.java b/OGP1718-Worms/src/Worm.java index dbe5654..b02a9f9 100644 --- a/OGP1718-Worms/src/Worm.java +++ b/OGP1718-Worms/src/Worm.java @@ -408,12 +408,15 @@ public class Worm { * * @param angle * the angle that must be added to the orientation - * @pre the angle to add must be between 0 and 2pi (including 0) - * |0 <= angle < 2pi + * @pre the angle to add must be between 0 and 2pi (including 0) + * |0 <= angle < 2pi * @post the new orientation is the old orientation plus the given angle - * |new.getOrientation() = this.getOrientation() + angle + * |new.getOrientation() = this.getOrientation() + angle * @post the resulting angle (= the new orientation) must be between 0 and 2pi (including 0) - * |0 <= new.getOrientation() < 2pi + * |0 <= new.getOrientation() < 2pi + * @post current points of action points schould be reduced, for this there is another + * method with as parameter the given angle + * |substractPoints(angle) */ public void turn(double angle) { assert 0 <= angle && angle < (2 * Math.PI);