Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
MikeZyeman 2021-12-10 19:30:51 +01:00
commit 47b5a8b0bb
1 changed files with 17 additions and 0 deletions

View File

@ -1,16 +1,33 @@
package ch.zhaw.catan; package ch.zhaw.catan;
/**
* Abstract Super Class of Settlement and Road.
* @author Michael Ziegler
*/
public abstract class Structure { public abstract class Structure {
private final Config.Faction faction; private final Config.Faction faction;
/**
*
* @param faction
*/
public Structure(Config.Faction faction) { public Structure(Config.Faction faction) {
this.faction = faction; this.faction = faction;
} }
/**
*
* @return String of the Structure
*/
public String toString() { public String toString() {
return faction.toString(); return faction.toString();
} }
/**
* Method to
*
* @return faction of the structure
*/
public Config.Faction getFaction() { public Config.Faction getFaction() {
return faction; return faction;
} }