public Player(int lives) { //defaults name = ""; this.lives = lives; score = new Score(); time = 0; this.ammo = 20; this.maxAmmo = 20; shootTimer = new Timer(); PlayerState = new PlayerContext(); maxReloadTime = 3; }
public void newGame(int lives) { score.resetScore(); this.lives = lives; ammo = 20; time = 0; this.ammo = 20; this.maxAmmo = 20; shootTimer = new Timer(); PlayerState = new PlayerContext(); maxReloadTime = 3; }