Пример #1
0
 private void InitializeMap()
 {
     gameMap = new SmartMap(length, width, new MapFloor(), new ConcreteCube());
     gameMap.AddElements <RandomPlacementOnEmptyPosition>(new BreakCube(), breakCubesCount);
     gameMap.AddElements <BonusesRandomPlacement>(GameFactory.CreateBonusSpeed(), bonusSpeedCount);
     gameMap.AddElements <BonusesRandomPlacement>(GameFactory.CreateBonusBombs(), bonusBombsCount);
     gameMap.AddElements <BonusesRandomPlacement>(GameFactory.CreateBonusFlames(), bonusFlamesCount);
     gameMap.AddElements <BonusesRandomPlacement>(GameFactory.CreateBonusWallpass(), bonusWallpassCount);
     gameMap.AddElements <BonusesRandomPlacement>(GameFactory.CreateBonusDetonator(), bonusDetonatorCount);
     gameMap.AddElements <RandomPlacementOnEmptyPosition>(GameFactory.CreateEasyEnemy(), easyEnemiesCount);
     gameMap.AddElements <RandomPlacementOnEmptyPosition>(GameFactory.CreateHardEnemy(gameMap.Field), hardEnemyCount);
     gameMap.CreateAllElements();
 }