示例#1
0
        public void Test()
        {
            var other = randomCharacter.RandomiseGladiator(rnd, 40, armoursTable, weaponsTable);
            //other.Equipment.Weapon = (Weapon)weaponsTable[0];
            var  villain = Character.CopyToWarrior(other);
            Duel duel    = new Duel(this.hero, villain, FightMode.TOURNAMENT, rnd);

            duel.Begin();
            while (duel.NextMove())
            {
                ;
            }
            duel.Finish();
            Console.ReadLine();
        }
示例#2
0
        private void GoFight(FightMode fightMode)
        {
            switch (fightMode)
            {
            case FightMode.DUEL:
            {
                var  other   = randomCharacter.RandomiseGladiator(rnd, 40, armoursTable, weaponsTable);
                var  villain = Character.CopyToWarrior(other);
                Duel duel    = new Duel(this.hero, villain, FightMode.TOURNAMENT, rnd);
                duel.Begin();
                while (duel.NextMove())
                {
                    ;
                }
                duel.Finish();
                break;
            }

            case FightMode.TOURNAMENT:
            {
                Tournament tournament = new Tournament()
                {
                    Info = nextTournament
                };
                tournament.Begin();
                while (tournament.NextMove())
                {
                    ;
                }
                tournament.Finish();
                break;
            }

            default:
                break;
            }
        }