Exemple #1
0
        public Fight(Hero game)
        {
            Hero            = game;
            MonsterSelector = new MonsterSelector();
            MonsterSelector.AddMonster();

            if (CurrentDay == DayOfWeek.Monday)
            {
                Enemy = MonsterSelector.Monsters[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Tuesday)
            {
                Enemy = MonsterSelector.Monsters2[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Wednesday)
            {
                Enemy = MonsterSelector.Monsters3[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Thursday)
            {
                Enemy = MonsterSelector.Monsters4[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Friday)
            {
                Enemy = MonsterSelector.Monsters5[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Saturday)
            {
                Enemy = MonsterSelector.Monsters6[RandNum.Next(0, 5)];
            }
            else if (CurrentDay == DayOfWeek.Sunday)
            {
                Enemy = MonsterSelector.Monsters7[RandNum.Next(0, 5)];
            }
        }
Exemple #2
0
        private void DisplayMonsterOfToday()
        {
            var MonsterSelector = new MonsterSelector();

            MonsterSelector.DisplayMonsterofToday();
            Console.WriteLine("Press any key to return to main menu.");
            Console.ReadKey();
        }
Exemple #3
0
        private void Fight()
        {
            var monsterSelection = new MonsterSelector();
            var enemy            = monsterSelection.SelectByRandomBaseOnWeekDay();
            var fight            = new Fight(Hero, enemy, AchievementManager);

            fight.Start();
        }
Exemple #4
0
        private void Fight()
        {
            var damageCalculator   = new DamageCalculator();
            var monsterSelector    = new MonsterSelector();
            var achievementManager = new AchievementManager();
            var enemy = monsterSelector.SelectMonsterBasedOnWeekDay();

            var fight = new Fight(Hero, enemy, damageCalculator, achievementManager);

            fight.Start();
        }