From 3773c2bbdd9f505e5089b081b0a2dcf987a83609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Lunde=20Jensen?= Date: Thu, 20 Feb 2020 10:41:47 +0100 Subject: [PATCH] Adds a Tile class --- .../inf112/fiasko/roborally/objects/Tile.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/main/java/inf112/fiasko/roborally/objects/Tile.java diff --git a/src/main/java/inf112/fiasko/roborally/objects/Tile.java b/src/main/java/inf112/fiasko/roborally/objects/Tile.java new file mode 100644 index 0000000..1022d6d --- /dev/null +++ b/src/main/java/inf112/fiasko/roborally/objects/Tile.java @@ -0,0 +1,42 @@ +package inf112.fiasko.roborally.objects; + +import inf112.fiasko.roborally.element_properties.Direction; +import inf112.fiasko.roborally.element_properties.TileType; + +public class Tile { + + /** + * tileType stores the type of the specific tile. + */ + private TileType tileType; + /** + * direction stores the direction of the specific tile. + */ + private Direction direction; + + /** + * + * @param tileType sets the type of the tile. + * @param direction sets the direction the tile is facing. + */ + public Tile(TileType tileType, Direction direction) { + this.tileType = tileType; + this.direction = direction; + } + + /** + * + * @return the type of the specific tile. + */ + public TileType getTileType() { + return tileType; + } + + /** + * + * @return the direction of the specific tile. + */ + public Direction getDirection() { + return direction; + } +}