public class Human : IPlayer\r
{\r
//The number of frames between each projectile is spawned.\r
- const int shootCoolDown = 10;\r
+ const int shootCoolDown = 18;\r
String CharName;\r
Game game;\r
Texture2D charModel;\r
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 = 30;\r
+ projectileSpeed = 8;\r
\r
// Speed is the number of grid cells you can move through per second.\r
- mMotion = new MovementManager(position, 8.0f);\r
+ mMotion = new MovementManager(position, 4.0f);\r
}\r
\r
public void LoadContent(ContentManager contentManager)\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