コード例 #1
0
 public static void EnemyTrainerDrawsbackPokemon(IPokemon pokemon)
 {
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.TrainerAction <EnemyAction>($"{pokemon?.GetType().Name}, come back!");
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.ClearScreen();
 }
コード例 #2
0
 public static void PlayerSendsPokemon(IPokemon pokemon)
 {
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.TrainerAction <PlayerAction>($"Go, {pokemon.GetType().Name}!");
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.ClearScreen();
 }
コード例 #3
0
 public static void PlayerDrawsbackPokemon(IPokemon pokemon)
 {
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.TrainerAction <PlayerAction>($"Great job, {pokemon.GetType().Name}. Come back!");
     ConsoleUtils.WaitOneSecond();
     ConsoleUtils.ClearScreen();
 }
コード例 #4
0
 public static void ShowItemWasUsedOnPokemon(IItem item, IPokemon pokemon)
 {
     ConsoleUtils.ShowMessageAndWaitTwoSeconds($"{item.GetType().Name} was used on {pokemon.GetType().Name}!");
     ConsoleUtils.ClearScreen();
 }
コード例 #5
0
 public static void ShowItemCannotBeUsed()
 {
     ConsoleUtils.ShowMessageAndWaitTwoSeconds("The selected item cannot be used on the Pokemon!");
     ConsoleUtils.ClearScreen();
 }
コード例 #6
0
 public static void EnemyTrainerWantsToBattle(ITrainer enemyTrainer)
 {
     Console.WriteLine($"{enemyTrainer.GetType().Name} wants to battle!");
     ConsoleUtils.WaitTwoSeconds();
     ConsoleUtils.ClearScreen();
 }
コード例 #7
0
 public static void TrainerHasNoPokemonLeft(ITrainer trainer)
 {
     ConsoleUtils.ClearScreen();
     ConsoleUtils.ShowMessageBetweenEmptyLines($"{trainer.GetType().Name} has no other pokemon left to battle...");
 }
コード例 #8
0
 public static void ShowPlayerThereAreNoPokemonLeftToSwitch()
 {
     ConsoleUtils.ShowMessageAndWaitOneSecond("There are no other pokemon left to battle!");
     ConsoleUtils.ClearScreen();
 }