removed outdated code.
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Wed, 21 Apr 2010 19:54:40 +0000 (19:54 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Wed, 21 Apr 2010 19:54:40 +0000 (19:54 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@125 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/Human.cs

index 08d962a1e682042ef420fab99b59b8fb52815d78..142a82b25ca923316cc261dedddb345a1d0f1101 100644 (file)
@@ -11,16 +11,8 @@ namespace CarFire
 {\r
     public class Human : IPlayer\r
     {\r
-        public enum State\r
-        {\r
-            left,\r
-            right,\r
-            up,\r
-            down\r
-        };\r
         //The number of frames between each projectile is spawned.\r
         const int shootCoolDown = 10;\r
-        State state;\r
         String CharName;\r
         Game game;\r
         Texture2D charModel;\r
@@ -48,8 +40,6 @@ namespace CarFire
             health = 100;\r
             score = 0;\r
             visible = false;\r
-            //default state\r
-            state = State.up;\r
             charModel = model;\r
             projectileModel = projectile;\r
             projectileSpeed = 30;\r
@@ -104,15 +94,6 @@ namespace CarFire
             bool moveRight = keysPressed.Contains(Keys.Right);\r
             bool moveUp = keysPressed.Contains(Keys.Up);\r
             bool moveDown = keysPressed.Contains(Keys.Down);\r
-            if (moveLeft)\r
-                state = State.left;\r
-            else if (moveRight)\r
-                state = State.right;\r
-            else if (moveUp)\r
-                state = State.up;\r
-            else if (moveDown)\r
-                state = State.down;\r
-\r
             Point destination = MovementManager.GetNeighborCell(mMotion.Coordinates, moveLeft, moveRight, moveUp, moveDown);\r
             if (!keysPressed.Contains(Keys.LeftControl))\r
             {\r
This page took 0.025027 seconds and 4 git commands to generate.