From ec12d20967bb4eb4c7fd22b47a0644930885e204 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Thu, 24 May 2018 12:49:05 +0200 Subject: [PATCH] Documentatie model --- OGP1718-Worms/src/worms/model/Projectile.java | 6 ++++++ OGP1718-Worms/src/worms/model/Rifle.java | 6 ++++++ OGP1718-Worms/src/worms/model/Team.java | 6 ++++++ OGP1718-Worms/src/worms/model/World.java | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/OGP1718-Worms/src/worms/model/Projectile.java b/OGP1718-Worms/src/worms/model/Projectile.java index 3c148b7..2d0b7e3 100644 --- a/OGP1718-Worms/src/worms/model/Projectile.java +++ b/OGP1718-Worms/src/worms/model/Projectile.java @@ -4,6 +4,12 @@ import static java.lang.Math.*; import worms.util.Coordinate; import java.util.List; +/** + * A class of Projectiles involving a worm, a mass and a force. + * + * @version 1.0 + * @author Arthur Bols & Leen Dereu + */ public abstract class Projectile extends GameObject implements IJumpable { // region constructor diff --git a/OGP1718-Worms/src/worms/model/Rifle.java b/OGP1718-Worms/src/worms/model/Rifle.java index ebde28d..6ac872c 100644 --- a/OGP1718-Worms/src/worms/model/Rifle.java +++ b/OGP1718-Worms/src/worms/model/Rifle.java @@ -7,6 +7,12 @@ import java.util.concurrent.ThreadLocalRandom; import static java.lang.Math.cos; import static java.lang.Math.sin; +/** + * A class of Rifles involving a worm. + * + * @version 1.0 + * @author Arthur Bols & Leen Dereu + */ public class Rifle extends Projectile { /** diff --git a/OGP1718-Worms/src/worms/model/Team.java b/OGP1718-Worms/src/worms/model/Team.java index 3896fb5..13ba94a 100644 --- a/OGP1718-Worms/src/worms/model/Team.java +++ b/OGP1718-Worms/src/worms/model/Team.java @@ -6,6 +6,12 @@ import java.util.function.BiFunction; import worms.util.IllegalNameException; import worms.util.TeamComparator; +/** + * A class of Teams involving a name and a world. + * + * @version 2.0 + * @author Arthur Bols & Leen Dereu + */ public class Team { diff --git a/OGP1718-Worms/src/worms/model/World.java b/OGP1718-Worms/src/worms/model/World.java index a67bb0c..5602eeb 100644 --- a/OGP1718-Worms/src/worms/model/World.java +++ b/OGP1718-Worms/src/worms/model/World.java @@ -5,6 +5,12 @@ import worms.util.Coordinate; import java.util.*; import java.util.stream.Collectors; +/** + * A class of Worlds involving a width, a height and a map. + * + * @version 2.0 + * @author Arthur Bols & Leen Dereu + */ public class World { // region constructor / destructor