From 4429f2dc0f30f4830f942c5b3b90a118a10c7468 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Wed, 7 Mar 2018 16:15:44 +0100 Subject: [PATCH] commentaar variabelen --- OGP1718-Worms/src/Worm.java | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/OGP1718-Worms/src/Worm.java b/OGP1718-Worms/src/Worm.java index abf37de..f6393af 100644 --- a/OGP1718-Worms/src/Worm.java +++ b/OGP1718-Worms/src/Worm.java @@ -9,20 +9,39 @@ public class Worm { private Tuple location; private Tuple oldLocation; - // Orientation + /** + * this variable contains the orientation of the worm + */ private double orientation; - // shape + /** + * this variable contains the radius of the worm + */ private double radius; + + /** + * this variable contains the minimum value of the radius + */ private final double minRadius; - // mass + + /** + * this variable contains the mass of the worm + */ private double mass; - // points + /** + * this variable contains the current action points of the worm + */ private int points; + + /** + * this variable contains the maximum points a worm can have + */ private int maxPoints; - // name + /** + * this variable contains the name of the worm + */ private String name; //===================================================================================