public void InitialFighting(EvilCreature evilCreatureOpponent)
 {
     while (!creature.Dead && !evilCreatureOpponent.Dead)
     {
         creature.DealDamage();
         evilCreatureOpponent.ReceiveDamage(creature.DealDamage());
         while (!evilCreatureOpponent.Dead)
         {
             evilCreatureOpponent.DealDamage();
             creature.ReceiveDamage(evilCreatureOpponent.DealDamage());
         }
     }
 }
Beispiel #2
0
        public Arena ApplyForJob(IHero hero, IJob chosenJob)
        {
            EvilCreature enemy = this.ChooseEnemy(chosenJob);

            return(new Arena(string.Format("Fighting for '{0}' position", chosenJob.Possition), chosenJob.JobFightRules, hero, enemy));
        }