Exemple #1
0
 public void StartEncounter(ref Player player)
 {
     Console.WriteLine("As you enter the castle JanJaap-TheoBert at charges you!");
     do
     {
         Program.HealthUI("JanJaap-TheoBert", health, maxHealth, stamina, maxStamina, 10);
         CastAbility(ref player);
         FightUI fui = new FightUI();
         health -= fui.ShowFightUI(ref player);
         Console.Clear();
     } while (health > 1);
     Console.WriteLine("The Castle Boss is knocked down..");
     player.ResetStamina(ref player);
     Console.WriteLine("He falls to his knees, and dies.");
     Console.ReadLine();
     Console.Clear();
     Console.WriteLine("Congrats! You've won!");
     Console.WriteLine("");
     Console.WriteLine("Press enter to continue...");
     Console.ReadLine();
 }
Exemple #2
0
 public void StartEncounter(ref Player player, ref Map map)
 {
     Console.WriteLine("The Angry Man Attacks!");
     do
     {
         Program.HealthUI("Angry Man", health, maxHealth, stamina, maxStamina, 10);
         CastAbility(ref player);
         FightUI fui = new FightUI();
         health -= fui.ShowFightUI(ref player);
         Console.Clear();
     } while (health > 1);
     Console.WriteLine("The angry man is knocked down..");
     player.ResetStamina(ref player);
     Console.WriteLine("As his head bounces against the floor he stops breathing.. ");
     Console.ReadLine();
     Console.Clear();
     Console.WriteLine("Congrats! You've killed an innocent man in his own house!");
     Console.WriteLine("");
     player.SetGold(20);
     Console.WriteLine("You stole 20 gold from the man!");
     Console.WriteLine("Press enter to continue...");
     Console.ReadLine();
 }