int score;\r
\r
MovementManager mMotion;\r
-\r
bool visible;\r
- Display theDisplay;\r
\r
//Used to draw projectiles\r
int projectileSpeed;\r
int projectileCoolDown;\r
\r
\r
- public Human(Game theGame, String Name, Texture2D model, Texture2D projectile, Display mDisplay, Point position)\r
+ public Human(Game theGame, String Name, Point position)\r
{\r
game = theGame;\r
CharName = Name;\r
- theDisplay = mDisplay;\r
health = 100;\r
score = 0;\r
visible = false;\r
- charModel = model;\r
- projectileModel = projectile;\r
projectileSpeed = 8;\r
\r
// Speed is the number of grid cells you can move through per second.\r
toShoot.Normalize();\r
toShoot *= projectileSpeed;\r
projectileCoolDown = shootCoolDown;\r
- theDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel,\r
+ game.State.mDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel,\r
toShoot, new Point(startX, startY)));\r
\r
\r