javaDoc in Settlement
This commit is contained in:
@@ -2,9 +2,13 @@ package ch.zhaw.catan;
|
|||||||
|
|
||||||
import java.awt.*;
|
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 {
|
public class Settlement extends Structure {
|
||||||
|
|
||||||
|
//the coordinates of the position on the board
|
||||||
private Point position;
|
private Point position;
|
||||||
|
|
||||||
public Settlement(Config.Faction faction, Point position) {
|
public Settlement(Config.Faction faction, Point position) {
|
||||||
@@ -12,6 +16,9 @@ public class Settlement extends Structure {
|
|||||||
this.position = position;
|
this.position = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the datafield position
|
||||||
|
*/
|
||||||
public Point getPosition() {
|
public Point getPosition() {
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user