29 lines
541 B
Java
29 lines
541 B
Java
/*
|
|
============================================================
|
|
This is the "Kartenfarbe" file from Author: Philipp Kotte
|
|
written on: 05 / 10 / 2023 at: 23:32
|
|
============================================================
|
|
*/
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return getFarbe();
|
|
}
|
|
|
|
}
|