]> Dogcows Code - chaz/carfire/commitdiff
Slightly improved commenting.
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 19 Apr 2010 04:24:01 +0000 (04:24 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 19 Apr 2010 04:24:01 +0000 (04:24 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@105 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/Display.cs

index ee694fa5a19d7c1f6834393ea499626a30c306c2..ab4a2c302c80e3603ff33e2fde9ce7563d20704a 100644 (file)
@@ -138,6 +138,7 @@ namespace CarFire
                     }\r
                 }\r
             }\r
+            //Update input for each player\r
             for (int i = 0; i < 4; i++)\r
             {\r
                 //If player has not selected a player yet let them select one.\r
@@ -150,6 +151,7 @@ namespace CarFire
                         mCharacters[i].GridY = mMap.GetStartingPositionForPlayer(i + 1).Y;\r
                     }\r
                 }\r
+                //Regular player input updates\r
                 else\r
                 {\r
 \r
@@ -162,7 +164,6 @@ namespace CarFire
             {\r
                 if (!mMap.IsCellOpen(new Point(mProjectiles[i].GridX, mProjectiles[i].GridY)))\r
                 {\r
-\r
                     mProjectiles.RemoveAt(i);\r
                     i--;\r
                 }          \r
@@ -188,13 +189,10 @@ namespace CarFire
                     mCharacters[i].Draw(spriteBatch);\r
             } \r
         }\r
-        /*\r
-        public void AddCharacters(IPlayer player)\r
-        {\r
-            mCharacters[mCharacters.Length] = player;\r
-            //mCharacters.Add(player);\r
-        }\r
-         */\r
+        /// <summary>\r
+        /// Add a projectile to the Display.\r
+        /// </summary>\r
+        /// <param name="projectile"></param>\r
         public void AddProjectiles(Projectile projectile)\r
         {\r
             mProjectiles.Add(projectile);\r
This page took 0.030119 seconds and 4 git commands to generate.