2023-10-05 23:32:29 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "Kartenfarbe" file from Author: Philipp Kotte
|
|
|
|
written on: 05 / 10 / 2023 at: 23:32
|
|
|
|
============================================================
|
|
|
|
*/
|
|
|
|
package Domain.Enums;
|
|
|
|
|
|
|
|
public enum Kartenfarbe {
|
|
|
|
|
2023-10-10 12:04:21 +02:00
|
|
|
MENSCH("BLAU"), ZWERG("ROT"), ELF("GRÜN"), RIESE("GELB");
|
2023-10-25 11:57:48 +02:00
|
|
|
|
2023-10-10 12:04:21 +02:00
|
|
|
private String farbe;
|
2023-10-25 11:57:48 +02:00
|
|
|
|
|
|
|
private Kartenfarbe(String farbe) {
|
2023-10-10 12:04:21 +02:00
|
|
|
this.farbe = farbe;
|
|
|
|
}
|
2023-10-25 11:57:48 +02:00
|
|
|
|
2023-10-10 12:04:21 +02:00
|
|
|
public String getFarbe() {
|
|
|
|
return farbe;
|
|
|
|
}
|
|
|
|
|
2023-10-18 16:00:16 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return getFarbe();
|
|
|
|
}
|
2023-10-10 12:04:21 +02:00
|
|
|
|
2023-10-05 23:32:29 +02:00
|
|
|
}
|