[iagno] Game: make a couple members private



commit 21a86a2579c7864b64b7f8cf808778a944042418
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Sep 15 20:22:24 2013 -0500

    Game: make a couple members private

 src/game.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index b1fd33a..2c58185 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -18,7 +18,7 @@ public enum Player
 public class Game
 {
     /* Tiles on the board */
-    public Player[,] tiles;
+    private Player[,] tiles;
 
     public int width
     {
@@ -39,7 +39,7 @@ public class Game
     private int undo_index = 0;
 
     /* Color to move next */
-    public Player current_color;
+    public Player current_color { get; private set; }
 
     /* Indicate that a player should move */
     public signal void move ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]