mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Merge branch 'master' of https://github.com/inf112-v20/Fiasko
This commit is contained in:
commit
8f038e069a
42
src/main/java/inf112/fiasko/roborally/objects/Tile.java
Normal file
42
src/main/java/inf112/fiasko/roborally/objects/Tile.java
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user