public Battle(Pokemon pokemon, Digimon digimon) { if (pokemon.IsFighting() && digimon.IsFighting()) { matchPossible = true; Console.WriteLine("Match submitted"); Poke = pokemon; Digi = digimon; } else { Console.WriteLine("Error trying to subscribe fighters."); } }
private int RealDamage(Pokemon poke, Digimon digi, int index) { int atk = poke.GetAttackPoints(); int def = digi.GetDefensePoints(); if (index < 1) { atk = digi.GetAttackPoints(); def = poke.GetDefensePoints(); digi.Attack(); } else { poke.Attack(); } return(atk - def); }