diff --git a/src/main/java/de/hsfulda/onses/models/Cards.java b/src/main/java/de/hsfulda/onses/models/Cards.java new file mode 100644 index 0000000..59e5da4 --- /dev/null +++ b/src/main/java/de/hsfulda/onses/models/Cards.java @@ -0,0 +1,27 @@ +package de.hsfulda.onses.models; + +public class Cards { + + public enum ecolor { + RED, BLUE, GREEN, YELLOW, BLACK; + + private static final ecolor[] colors = ecolor.values(); + public static ecolor getColors (int n) + { + return ecolor.colors[n]; + } + }; + public enum evalue { + ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, DRAWTWO, SKIP, REVERSE, CHOOSE, CHOOSEDRAW; + + private static final evalue[] values = evalue.values(); + public static evalue getValue(int n) { + return evalue.values[n]; + } + }; + + private int id; + private ecolor color; + private evalue value; + +}