From 681804af55b1ee1c7599ae81002d5e80d822b831 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Wed, 7 Mar 2018 18:49:35 +0100 Subject: [PATCH] commentaar set en getLocation --- OGP1718-Worms/src/Worm.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/OGP1718-Worms/src/Worm.java b/OGP1718-Worms/src/Worm.java index e5072e0..ae80ed8 100644 --- a/OGP1718-Worms/src/Worm.java +++ b/OGP1718-Worms/src/Worm.java @@ -115,7 +115,11 @@ public class Worm { // region location //=================================================================================== - + /** + * Return the location of the worm + * the location of the worm expresses the place of the worm + * in the play area + */ public Tuple getLocation() { return this.location; } @@ -125,8 +129,8 @@ public class Worm { * * @param location * the new location for the worm - * @post the new location of the worm is equal to the given location - * |new.getLocation() == location + * @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)