From 0ee705252b145e463661d7e96224011ce0ce7cf3 Mon Sep 17 00:00:00 2001 From: Petter Tobias Madsen Date: Thu, 20 Feb 2020 10:59:11 +0100 Subject: [PATCH] Tobias og Gabriel added comments to the wall class --- .../roborally/element_properties/Wall.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/inf112/fiasko/roborally/element_properties/Wall.java b/src/main/java/inf112/fiasko/roborally/element_properties/Wall.java index a6d27a9..fb8c8be 100644 --- a/src/main/java/inf112/fiasko/roborally/element_properties/Wall.java +++ b/src/main/java/inf112/fiasko/roborally/element_properties/Wall.java @@ -1,18 +1,34 @@ package inf112.fiasko.roborally.element_properties; public class Wall { + /** + * This class is a representation of a wall + */ private WallType wall; private Direction direction; + /** + * Initializes the wall + * @param wall gives the type of wall eks. wall normal or wall corner + * @param direction gives the direction the wall is facing. + */ public Wall (WallType wall,Direction direction){ this.wall = wall; this.direction = direction; } + /** + * Gets the type of the wall + * @return the wall type + */ public WallType getWallType() { return wall; } + /** + * Gets the direction of the wall + * @return the direction of the wall + */ public Direction getDirection(){ return direction; }