Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO;
- namespace ConsoleBarovia
- {
- class Town
- {
- Hero hero = new Hero();
- string input;
- bool isInTown = false;
- bool dangerInTown = false;
- int intInput = 0;
- public void enteringTown()
- {
- Crossroads crossroads = new Crossroads();
- Console.WriteLine("You follow the old dirt road up the small hill towards the town.");
- if (hero.giveHasBeenInTown() == false)
- {
- Console.WriteLine("After walking for a while along the old and muddy dirt road,");
- Console.WriteLine("you finnaly see the village infront of you. You can see the wooden palisade");
- Console.WriteLine("Which surrounds the village,there is a small gate on the south side");
- Console.WriteLine("The gate seems to be heavily guarded for such a small village,");
- Console.WriteLine("four men at the gate and several gaurds with crossbows on top of the palisade.");
- Console.WriteLine("It would almost look as if guards are expecting trouble.");
- Console.WriteLine(" ");
- Console.WriteLine("What would you like to do?");
- Console.WriteLine("(1) Go towards the gates");
- Console.WriteLine("(2) Turn around and walk back the way I came");
- Console.WriteLine("Please choose a nummber");
- intInput = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("you choose " + intInput);
- Console.ReadLine();
- switch (intInput)
- {
- case 1:
- Console.WriteLine("You start walking towards the gates");
- Console.WriteLine("As you walk towards the gate, one of the gaurds halts you");
- Console.WriteLine("Welcome to Barovia sir, may I ask what is your intent in the village?");
- input = Console.ReadLine(); // TODO: Add Answear Dialog
- Console.WriteLine("Hmm I see, and for how loong do you plan on staying here?");
- input = Console.ReadLine(); //TODO: Add Answears
- Console.WriteLine("Then I wish you a pleasant stay in Barovia sir");
- isInTown = true;
- hero.setHasBeenInTown(true);
- crossroads.enteringCrossRoads();
- break;
- case 2:
- Console.WriteLine("You turn back towards the crossroads");
- Console.WriteLine("After walking for a while you finnaly spot the signpost");
- Console.ReadLine();
- Console.Clear();
- crossroads.enteringCrossRoads();
- break;
- default:
- Console.WriteLine("This is not the time to be fooling around, Invalid nummber entered:P"); //TODO: ADD Prppper reaction.
- break;
- }
- }
- else if (dangerInTown == true)
- {
- //If Town is under event/danger/wtf?
- }
- else
- {
- Console.WriteLine("You enter the village");
- isInTown = true;
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment