From a250362ff6ad169908a03d69e1b0dac1ef53564b Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 19 Apr 2010 04:24:01 +0000 Subject: [PATCH] Slightly improved commenting. git-svn-id: https://bd85.net/svn/cs3505_group@105 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire/Display.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CarFire/CarFire/CarFire/Display.cs b/CarFire/CarFire/CarFire/Display.cs index ee694fa..ab4a2c3 100644 --- a/CarFire/CarFire/CarFire/Display.cs +++ b/CarFire/CarFire/CarFire/Display.cs @@ -138,6 +138,7 @@ namespace CarFire } } } + //Update input for each player for (int i = 0; i < 4; i++) { //If player has not selected a player yet let them select one. @@ -150,6 +151,7 @@ namespace CarFire mCharacters[i].GridY = mMap.GetStartingPositionForPlayer(i + 1).Y; } } + //Regular player input updates else { @@ -162,7 +164,6 @@ namespace CarFire { if (!mMap.IsCellOpen(new Point(mProjectiles[i].GridX, mProjectiles[i].GridY))) { - mProjectiles.RemoveAt(i); i--; } @@ -188,13 +189,10 @@ namespace CarFire mCharacters[i].Draw(spriteBatch); } } - /* - public void AddCharacters(IPlayer player) - { - mCharacters[mCharacters.Length] = player; - //mCharacters.Add(player); - } - */ + /// + /// Add a projectile to the Display. + /// + /// public void AddProjectiles(Projectile projectile) { mProjectiles.Add(projectile); -- 2.45.2