Mazetar

Intro.cs

Mar 25th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.24 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6.  
  7.  
  8. namespace ConsoleBarovia
  9. {
  10.     class Intro
  11.     {
  12.         Hero hero = new Hero();
  13.         Town town = new Town();
  14.         Crossroads crossRoads = new Crossroads();
  15.         string input;
  16.  
  17.         public void StartingIntro()
  18.         {
  19.             Console.WriteLine("Welcome to the lands of Barovia stranger!");
  20.             Console.WriteLine("jadajada.intro.com (pft)...TEST..."); //TODO: Write Intro Here
  21.             Console.WriteLine("Tell me... What if you name?");
  22.             input = (Console.ReadLine());
  23.             hero.setName(input);
  24.             Console.WriteLine(" ");
  25.             Console.WriteLine("ah well then, tell me " + input);
  26.             Console.WriteLine("Do you belive in magic?");
  27.             input = (Console.ReadLine());
  28.  
  29.             if (input == "yes")
  30.             {
  31.                 hero.setbelivesInMagic(true);
  32.                 Console.WriteLine(" ");
  33.                 Console.WriteLine("That is wise of you, good luck young one.");
  34.             }
  35.             else if (input == "y")
  36.             {
  37.                 hero.setbelivesInMagic(true);
  38.                 Console.WriteLine(" ");
  39.                 Console.WriteLine("That is wise of you, good luck young one.");
  40.                 Console.ReadLine();
  41.             }
  42.             else
  43.             {
  44.                 hero.setbelivesInMagic(false);
  45.                 Console.WriteLine(" ");
  46.                 Console.WriteLine("You don't? Oh well, I'm sure that after visiting Barovia");
  47.                 Console.WriteLine("you will have changed your mind, good luck young one.");
  48.                 Console.ReadLine();
  49.             }
  50.  
  51.             Console.WriteLine("Suddently even though it only felt like a second has passed");
  52.             Console.WriteLine("It's getting dark, the evening fog is creeping over the land.");
  53.             Console.WriteLine("The old man is nowhere to be seen, infront of you theres an crossroards.");
  54.             Console.ReadLine();
  55.             Console.Clear();
  56.             crossRoads.setCrossCounter(+1);            
  57.             Console.WriteLine("The sign shows various direction you can travel, which way do you choose?");
  58.         }
  59.  
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment