public ZombieMountain(Difficulty difficulty, Hero hero)
            : base(difficulty, hero)
        {
            if (difficulty == Difficulty.Easy)
            {
                this.initialHitPercentage = 70;
                this.fastReaction = (int)ReactionTime.Normal;
                this.averageReaction = (int)ReactionTime.Slow;
                this.slowReaction = (int)ReactionTime.UltraSlow;
            }
            else if (difficulty == Difficulty.Medium)
            {
                this.initialHitPercentage = 60;
                this.fastReaction = (int)ReactionTime.Fast;
                this.averageReaction = (int)ReactionTime.Normal;
                this.slowReaction = (int)ReactionTime.Slow;
            }
            else
            {
                this.initialHitPercentage = 45;
                this.fastReaction = (int)ReactionTime.UltraFast;
                this.averageReaction = (int)ReactionTime.Fast;
                this.slowReaction = (int)ReactionTime.Normal;
            }

            enemy = new Enemy(PlayerStats.Zombie, Armor.None, Weapon.None, Magic.StrongHit);
        }
        public DarkForestLevel(Difficulty difficulty, Hero hero)
            : base(difficulty, hero)
        {
            this.bitePower = (int)(enemy.PlayerStats.AttackPower * this.Hero.PlayerStats.CalculateDefencePercentage());
            this.agilityEffect = this.Hero.PlayerStats.CalculateAgilityPercentage();

            if (difficulty == Difficulty.Easy)
            {
                this.fastReaction = (int)ReactionTime.Normal * this.agilityEffect;
                this.averageReaction = (int)ReactionTime.Slow * this.agilityEffect;
                this.slowReaction = (int)ReactionTime.UltraSlow * this.agilityEffect;
            }
            else if (difficulty == Difficulty.Medium)
            {
                this.fastReaction = (int)ReactionTime.Fast * this.agilityEffect;
                this.averageReaction = (int)ReactionTime.Normal * this.agilityEffect;
                this.slowReaction = (int)ReactionTime.Slow * this.agilityEffect;
            }
            else
            {
                this.fastReaction = (int)ReactionTime.UltraFast * this.agilityEffect;
                this.averageReaction = (int)ReactionTime.Fast * this.agilityEffect;
                this.slowReaction = (int)ReactionTime.Normal * this.agilityEffect;
            }
        }
 public DemonVaultLevel(Difficulty difficulty, Hero hero)
     : base(difficulty, hero)
 {
     this.enemyDemon = new Enemy(PlayerStats.FlyingDemon, Armor.None, Weapon.None, Magic.HighDrop);
 }
        public static void ShowMenu(Hero userHero)
        {
            Console.TreatControlCAsInput = false;
            Console.CancelKeyPress += new ConsoleCancelEventHandler(BreakHandler);
            Console.Clear();
            Console.CursorVisible = false;

            Console.WriteLine(logo);
            WriteColorString("Select Level", 33, 9, ConsoleColor.Black, ConsoleColor.White);
            string[] choices = { "Dark Forest", "Deamon Vault", "Zombie Mountain"};
            WriteColorString("Choose using down and up arrow keys and press enter", 10, 17, ConsoleColor.Black, ConsoleColor.White);
            int choice = ChooseListBoxItem(choices, 30, 10, ConsoleColor.DarkYellow, ConsoleColor.Black);
            // do something with choice

            WriteColorString(" ", 0, 20, ConsoleColor.Black, ConsoleColor.White);
            if (choices[choice - 1] == "Dark Forest")
            {
                DarkForestLevel forest = new DarkForestLevel(Difficulty.Easy, userHero);
                forest.Start();

            }
            if (choices[choice - 1] == "Deamon Vault")
            {
                DemonVaultLevel vault = new DemonVaultLevel(Difficulty.Easy, userHero);
                vault.Start();
            }
            if (choices[choice - 1] == "Zombie Mountain")
            {
                ZombieMountain zombie = new ZombieMountain(Difficulty.Easy, userHero);
                zombie.Start();
            }

            Console.ReadKey();
            CleanUp();
        }
Example #5
0
 protected Level(Difficulty difficulty, Hero hero)
 {
     this.Difficulty = difficulty;
     this.Hero = hero;
 }