]> Pileus Git - ~andy/spades/blobdiff - src/Cards.java
Show turn in title bar
[~andy/spades] / src / Cards.java
index 8506e212a36c708722e90acdc30a3d0351ee0ffe..0d5686a3f8325c8612a32ba0d6b9107094c0437f 100644 (file)
@@ -129,6 +129,8 @@ public class Cards extends GLSurfaceView implements GLSurfaceView.Renderer
        public Spades        game;        // the spades game
        public String[]      hand;        // cards to display
        public String[]      pile;        // played cards to display
+       public String        turn;        // whos turn it is
+       public String        state;       // state of the game (turn, bid, etc)
 
        /* GLSurfaceView Methods */
        public Cards(Context context)
@@ -148,6 +150,7 @@ public class Cards extends GLSurfaceView implements GLSurfaceView.Renderer
 
                this.hand  = "As Ks Qs Js 10s 9s 8s 7s 6s 5s 4s 3s 2s".split(" ");
                this.pile  = "Ah Ac Ad".split(" ");
+               this.turn  = "";
 
                this.index = new HashMap<String,Integer>(52);
                for (int i = 0; i < 52; i++)