javaDoc in Settlement

This commit is contained in:
schrom01 2021-12-09 18:18:30 +01:00
parent 187302afd5
commit 06382959b1
1 changed files with 8 additions and 1 deletions

View File

@ -2,9 +2,13 @@ package ch.zhaw.catan;
import java.awt.*;
//TODO Java Doc
/**
* Sub Class of Structure and Super Class of City
* Can be saved in Siedler Board on a corner
*/
public class Settlement extends Structure {
//the coordinates of the position on the board
private Point position;
public Settlement(Config.Faction faction, Point position) {
@ -12,6 +16,9 @@ public class Settlement extends Structure {
this.position = position;
}
/**
* @return the datafield position
*/
public Point getPosition() {
return position;
}