From: Kyle Date: Wed, 21 Apr 2010 19:54:40 +0000 (+0000) Subject: removed outdated code. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=287423f09852acd3ef65226813eb536bd2687f29;p=chaz%2Fcarfire removed outdated code. git-svn-id: https://bd85.net/svn/cs3505_group@125 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- diff --git a/CarFire/CarFire/CarFire/Human.cs b/CarFire/CarFire/CarFire/Human.cs index 08d962a..142a82b 100644 --- a/CarFire/CarFire/CarFire/Human.cs +++ b/CarFire/CarFire/CarFire/Human.cs @@ -11,16 +11,8 @@ namespace CarFire { public class Human : IPlayer { - public enum State - { - left, - right, - up, - down - }; //The number of frames between each projectile is spawned. const int shootCoolDown = 10; - State state; String CharName; Game game; Texture2D charModel; @@ -48,8 +40,6 @@ namespace CarFire health = 100; score = 0; visible = false; - //default state - state = State.up; charModel = model; projectileModel = projectile; projectileSpeed = 30; @@ -104,15 +94,6 @@ namespace CarFire bool moveRight = keysPressed.Contains(Keys.Right); bool moveUp = keysPressed.Contains(Keys.Up); bool moveDown = keysPressed.Contains(Keys.Down); - if (moveLeft) - state = State.left; - else if (moveRight) - state = State.right; - else if (moveUp) - state = State.up; - else if (moveDown) - state = State.down; - Point destination = MovementManager.GetNeighborCell(mMotion.Coordinates, moveLeft, moveRight, moveUp, moveDown); if (!keysPressed.Contains(Keys.LeftControl)) {