X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FHuman.cs;h=3897491da0305896fb6674f3f13f08f0261282f1;hb=f69be675ab1a1a9ab4b478f213c7b708d59820f2;hp=c1a3fad2e454cd81c1493fc6e24cebaf9891456e;hpb=ed23816ba555560b1835e277bf4041e612580c75;p=chaz%2Fcarfire diff --git a/CarFire/CarFire/CarFire/Human.cs b/CarFire/CarFire/CarFire/Human.cs index c1a3fad..3897491 100644 --- a/CarFire/CarFire/CarFire/Human.cs +++ b/CarFire/CarFire/CarFire/Human.cs @@ -23,25 +23,20 @@ namespace CarFire int score; MovementManager mMotion; - bool visible; - Display theDisplay; //Used to draw projectiles int projectileSpeed; int projectileCoolDown; - public Human(Game theGame, String Name, Texture2D model, Texture2D projectile, Display mDisplay, Point position) + public Human(Game theGame, String Name, Point position) { game = theGame; CharName = Name; - theDisplay = mDisplay; health = 100; score = 0; visible = false; - charModel = model; - projectileModel = projectile; projectileSpeed = 8; // Speed is the number of grid cells you can move through per second. @@ -50,8 +45,8 @@ namespace CarFire public void LoadContent(ContentManager contentManager) { - charModel = contentManager.Load("deselectBox"); //change to charModel when designed - projectileModel = contentManager.Load("emptySelectBox"); //change to a projectile model later + charModel = contentManager.Load("cs"); //change to charModel when designed + projectileModel = contentManager.Load("projectile"); //change to a projectile model later } @@ -146,7 +141,7 @@ namespace CarFire toShoot.Normalize(); toShoot *= projectileSpeed; projectileCoolDown = shootCoolDown; - theDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel, + game.State.mDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel, toShoot, new Point(startX, startY)));