]> Dogcows Code - chaz/carfire/blobdiff - Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs
Added to functionality of gui. Also added 2 methods I needed in NetworkGame, comments...
[chaz/carfire] / Project06 / CS 3505 Project 06 / CS 3505 Project 06 / NetworkGame.cs
index abe36ba4a4d4ca1dcd6d84affc91fbad5766960e..c8cc60c907f3be7788c4c5983ffda2bbed1bc1c5 100644 (file)
@@ -59,7 +59,7 @@ namespace CS_3505_Project_06
         }\r
 \r
 \r
-        LocalNetworkGamer LocalGamer\r
+        public LocalNetworkGamer LocalGamer\r
         {\r
             get\r
             {\r
@@ -67,8 +67,18 @@ namespace CS_3505_Project_06
             }\r
         }\r
 \r
+        // I added this as I needed a way to display all gamers not just the first gamer\r
+        //    -Brady\r
+        public GamerCollection<LocalNetworkGamer> LocalGamers\r
+        {\r
+            get\r
+            {\r
+                return mNetworkSession.LocalGamers;\r
+            }\r
+        }\r
+\r
 \r
-        NetworkSession CreateSession()\r
+        public NetworkSession CreateSession()\r
         {\r
             return CreateSession(mGame.MaximumSupportedPlayers);\r
         }\r
@@ -84,6 +94,12 @@ namespace CS_3505_Project_06
             return mNetworkSession;\r
         }\r
 \r
+        // added so I can test if sessionExists and thus be able to call things on NetworkGame safely\r
+        //    -Brady\r
+        public bool sessionExists()\r
+        {\r
+            return mNetworkSession == null;\r
+        }\r
 \r
         public AvailableNetworkSessionCollection FindSessions()\r
         {\r
This page took 0.020716 seconds and 4 git commands to generate.