Sfoglia il codice sorgente

Merge branch 'master' of miscbits/ZCW-OOP-Casino into master

miscbits 6 anni fa
parent
commit
41b20e33b4
1 ha cambiato i file con 22 aggiunte e 0 eliminazioni
  1. 22
    0
      src/main/java/io/zipcoder/casino/Suit.java

+ 22
- 0
src/main/java/io/zipcoder/casino/Suit.java Vedi File

@@ -0,0 +1,22 @@
1
+package io.zipcoder.casino;
2
+
3
+public enum Suit {
4
+    CLUBS('\u2660'),
5
+    DIAMONDS('\u2666'),
6
+    HEARTS('\u2665'),
7
+    SPADES('\u2663');
8
+
9
+    private Character symbol;
10
+
11
+    Suit(char c) {
12
+        this.symbol = c;
13
+    }
14
+
15
+    public Character getSymbol() {
16
+        return symbol;
17
+    }
18
+
19
+    public void setSymbol(Character symbol) {
20
+        this.symbol = symbol;
21
+    }
22
+}