Esempio n. 1
0
File: Game.cs Progetto: sven82/HFCS
        public void NewLevel()
        {
            fLevel++;
            switch (fLevel)
            {
            case 1:
                Bat      = new Bat(this.Boundaries, fRandom);
                fEnemies = new List <Enemy> {
                    Bat
                };
                Enemies = fEnemies;

                var Sword = new Sword(this.Boundaries, fRandom);
                WeaponInRoom = Sword;
                break;

            case 2:
                Ghost    = new Ghost(this.Boundaries, fRandom);
                fEnemies = new List <Enemy> {
                    Ghost
                };
                Enemies = fEnemies;

                var PotionBlue = new PotionBlue(this.Boundaries, fRandom);
                WeaponInRoom = PotionBlue;
                break;

            case 3:
                Bat      = new Bat(this.Boundaries, fRandom);
                Ghost    = new Ghost(this.Boundaries, fRandom);
                fEnemies = new List <Enemy> {
                    Bat, Ghost
                };
                Enemies = fEnemies;

                break;
            }
        }
Esempio n. 2
0
        public void NewLevel()
        {
            fLevel++;
            switch (fLevel)
            {
                case 1:
                    Bat = new Bat(this.Boundaries, fRandom);
                    fEnemies = new List<Enemy> { Bat };
                    Enemies = fEnemies;

                    var Sword = new Sword(this.Boundaries, fRandom);
                    WeaponInRoom = Sword;
                    break;

                case 2:
                    Ghost = new Ghost(this.Boundaries, fRandom);
                    fEnemies = new List<Enemy> { Ghost };
                    Enemies = fEnemies;

                    var PotionBlue = new PotionBlue(this.Boundaries, fRandom);
                    WeaponInRoom = PotionBlue;
                    break;

                case 3:
                    Bat = new Bat(this.Boundaries, fRandom);
                    Ghost = new Ghost(this.Boundaries, fRandom);
                    fEnemies = new List<Enemy> { Bat, Ghost };
                    Enemies = fEnemies;

                    break;

            }
        }