Browse Source

Card Variables

main
fdai7920 11 months ago
parent
commit
8c1feda155
  1. 27
      src/main/java/de/hsfulda/onses/models/Cards.java

27
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;
}
Loading…
Cancel
Save