mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Tobias og Gabriel added comments to the wall class
This commit is contained in:
parent
8f038e069a
commit
0ee705252b
@ -1,18 +1,34 @@
|
|||||||
package inf112.fiasko.roborally.element_properties;
|
package inf112.fiasko.roborally.element_properties;
|
||||||
|
|
||||||
public class Wall {
|
public class Wall {
|
||||||
|
/**
|
||||||
|
* This class is a representation of a wall
|
||||||
|
*/
|
||||||
private WallType wall;
|
private WallType wall;
|
||||||
private Direction direction;
|
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){
|
public Wall (WallType wall,Direction direction){
|
||||||
this.wall = wall;
|
this.wall = wall;
|
||||||
this.direction = direction;
|
this.direction = direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the type of the wall
|
||||||
|
* @return the wall type
|
||||||
|
*/
|
||||||
public WallType getWallType() {
|
public WallType getWallType() {
|
||||||
return wall;
|
return wall;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the direction of the wall
|
||||||
|
* @return the direction of the wall
|
||||||
|
*/
|
||||||
public Direction getDirection(){
|
public Direction getDirection(){
|
||||||
return direction;
|
return direction;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user