コード例 #1
0
    public void initializeFights()
    {
        Fight eliteFight1 = getFight();

        eliteFight1.enemies.Add(enemyTypes.getBoss());
        eliteFights.Add(eliteFight1);

        Fight easyFight1 = getFight();

        easyFight1.enemies.Add(enemyTypes.getFirstEnemy());
        easyFights.Add(easyFight1);

        Fight easyFight2 = getFight();

        easyFight2.enemies.Add(enemyTypes.getSecondEnemy());
        easyFights.Add(easyFight2);

        Fight easyFight3 = getFight();

        easyFight3.enemies.Add(enemyTypes.getThirdEnemy());
        easyFight3.enemies.Add(enemyTypes.getThirdEnemy());
        easyFights.Add(easyFight3);

        //Shuffle the easy Fights
        System.Random rng = new System.Random();
        easyFights = easyFights.OrderBy(a => rng.Next()).ToList();
    }