public Model(int amountSimpleTanks, int speedGame, int amountWalls, int amountHunterTanks) { r = new Random(); score = new Score(); this.amountSimpleTanks = amountSimpleTanks; this.speedGame = speedGame; this.amountWalls = amountWalls; this.amountHunterTanks = amountHunterTanks; NewGame(); }
public ModeGame(int amountSimpleTanks, int speedGame, int amountWalls, int amountHunterTanks) { r = new Random(); score = new Score(); player = new Player(); simpleTanks = new List<EnemyTank>(); hunterTanks = new List<HunterTank>(); walls = new List<Wall>(); projectiles = new List<Projectile>(); gameStatus = GameStatus.STOP; this.amountSimpleTanks = amountSimpleTanks; this.speedGame = speedGame; this.amountWalls = amountWalls; this.amountHunterTanks = amountHunterTanks; CreateWalls(amountWalls); CreateHunterTanks(); CreateSimpleTanks(); }