X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FHuman.cs;h=142a82b25ca923316cc261dedddb345a1d0f1101;hp=08d962a1e682042ef420fab99b59b8fb52815d78;hb=287423f09852acd3ef65226813eb536bd2687f29;hpb=16658241429e8befc3cb171a62163f36dedb6a33 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)) {