From 5cb39b9c069c459368dee0769522144de277adb2 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Wed, 7 Mar 2018 18:23:28 +0100 Subject: [PATCH 1/2] commentaar setLocation --- OGP1718-Worms/src/Worm.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OGP1718-Worms/src/Worm.java b/OGP1718-Worms/src/Worm.java index 63a7eca..6a8330d 100644 --- a/OGP1718-Worms/src/Worm.java +++ b/OGP1718-Worms/src/Worm.java @@ -115,11 +115,15 @@ public class Worm { } /** - * sets the location of the worm to the given location + * set the location of the worm to the given location * * @param location - * + * the new location for the worm + * @post the new location of the worm is equal to the given location + * |new.getLocation() == location * @throws IllegalArgumentException + * the given location is not a valid location for a worm + * |! isValidLocation(location) */ private void setLocation(Tuple location) throws IllegalArgumentException { From 553d41172df70bd56142a0ecc5aae7e21a8a8570 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Wed, 7 Mar 2018 18:28:16 +0100 Subject: [PATCH 2/2] Commentaar methodes ivm orientation --- OGP1718-Worms/src/Worm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OGP1718-Worms/src/Worm.java b/OGP1718-Worms/src/Worm.java index 6a8330d..f670c67 100644 --- a/OGP1718-Worms/src/Worm.java +++ b/OGP1718-Worms/src/Worm.java @@ -156,7 +156,8 @@ public class Worm { /** * Return the orientation of the worm - * + * the orientation of a worm expresses the direction in which + * the worm is looking */ @Basic public double getOrientation() {