예제 #1
0
파일: Game.cs 프로젝트: 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;
            }
        }
예제 #2
0
파일: Game.cs 프로젝트: pietroiusti/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;

            }
        }