pl/mbogusz3/invaders/model/InvadersModel.java
/**
	 * Start a new game, resetting player, enemies, obstacles etc to initial state (position, health etc)
	 */
Start a new game, resetting player, enemies, obstacles etc to initial state (position, health etc)
Start a new game resetting player enemies obstacles etc to initial state ( position health etc )
public void startNewGame() {
		Arrays.fill(this.keyDownMap, false);
		this.player.respawn();
		this.enemy.respawn();
		this.obstacles.respawn();
		this.playerProjectile = null;
		this.enemyProjectile = null;
		this.isGameRunning = true;
		this.isGameOver = false;
		this.isGameWon = false;
		this.setChanged();
		this.notifyView();
	}
public void startNewGame ( ) { Arrays . fill ( this . keyDownMap , false ) ; this . player . respawn ( ) ; this . enemy . respawn ( ) ; this . obstacles . respawn ( ) ; this . playerProjectile = null ; this . enemyProjectile = null ; this . isGameRunning = true ; this . isGameOver = false ; this . isGameWon = false ; this . setChanged ( ) ; this . notifyView ( ) ; }
Start a new game, resetting player, enemies, obstacles etc to initial state (position, health etc)
Start a new game resetting player enemies obstacles etc to initial state ( position health etc )