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