private void TrainerDrawsbackPokemon(bool isEnemyTrainer) { if (isEnemyTrainer) { EnemyAction.EnemyTrainerDrawsbackPokemon(EnemyTrainer.GetCurrentPokemon()); } else { PlayerAction.PlayerDrawsbackPokemon(Player.GetCurrentPokemon()); } }
public bool CannotSendNextAvailablePokemon(bool isEnemyTrainer = false) { ITrainer trainer = isEnemyTrainer ? EnemyTrainer : Player; trainer.SetPokemonAsFainted(trainer.GetCurrentPokemon()); TrainerDrawsbackPokemon(isEnemyTrainer); return(TrainerIsOutOfPokemonToBattle(isEnemyTrainer)); }
public static void EnemyTrainerSendsPokemon(ITrainer trainer) { ConsoleUtils.WaitOneSecond(); ConsoleUtils.TrainerAction <EnemyAction>($"{trainer.GetType().Name} sent out {trainer.GetCurrentPokemon()?.GetType().Name}!"); ConsoleUtils.SkipLine(); ConsoleUtils.ResetConsoleColors(); }