private void KillBonusPenalty(Vector3 position)
    {
        Int32 enemyPenaltyCount = 10;

        for (Int32 i = 0; i < enemyPenaltyCount; i++)
        {
            GameFactory.CreateEasyEnemy().Create()
            .SetPosition(position.x.ToRoundInt32(), position.z.ToRoundInt32());
        }
    }
Пример #2
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();
 }