Kai Sellmann 2023-10-10 14:59:44 +02:00
commit bf298f5817
3 changed files with 13 additions and 4 deletions

View File

@ -8,4 +8,5 @@ package Domain.Enums;
public enum Geschlecht { public enum Geschlecht {
M, W, D, KI;
} }

View File

@ -8,4 +8,16 @@ package Domain.Enums;
public enum Kartenfarbe { public enum Kartenfarbe {
MENSCH("BLAU"), ZWERG("ROT"), ELF("GRÜN"), RIESE("GELB");
private String farbe;
private Kartenfarbe (String farbe) {
this.farbe = farbe;
}
public String getFarbe() {
return farbe;
}
} }

View File

@ -75,8 +75,4 @@ public class Spieler {
return "ID: " + this.id + " Name: " + this.name + " (" + this.geschlecht + ")"; return "ID: " + this.id + " Name: " + this.name + " (" + this.geschlecht + ")";
} }
// Public Methoden
// Private Methoden (Hilfsmethoden)
} }