forked from 2211945/WIZARD_PR2_DOP
Merge branch 'main' of
https://gitty.informatik.hs-mannheim.de/2211945/WIZARD_PR2_DOP into kts1
commit
bf298f5817
|
@ -8,4 +8,5 @@ package Domain.Enums;
|
|||
|
||||
public enum Geschlecht {
|
||||
|
||||
M, W, D, KI;
|
||||
}
|
||||
|
|
|
@ -8,4 +8,16 @@ package Domain.Enums;
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -75,8 +75,4 @@ public class Spieler {
|
|||
return "ID: " + this.id + " Name: " + this.name + " (" + this.geschlecht + ")";
|
||||
}
|
||||
|
||||
// Public Methoden
|
||||
|
||||
// Private Methoden (Hilfsmethoden)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue