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;
- namespace ConsoleBarovia
- {
- class Crossroads
- {
- #region get&set
- bool firsttime;
- int crossCounter;
- public bool getFirstTime()
- {
- return this.firsttime;
- }
- public void setFirstTime(bool F)
- {
- this.firsttime = F;
- }
- public int getCrossCounter()
- {
- return this.crossCounter;
- }
- public void setCrossCounter(int CC)
- {
- this.crossCounter = CC;
- }
- #endregion get&set
- string input;
- int intInput;
- Town town = new Town();
- Hero hero = new Hero();
- Swamp swamp = new Swamp();
- public void enteringCrossRoads()
- {
- Console.WriteLine("(1) Baroivia Village");
- Console.WriteLine("(2) The Dark Woods");
- Console.WriteLine("(3) Thunder Mountain Road");
- Console.WriteLine("(4) Misty Swamps");
- Console.WriteLine("(0) Leave this place [EXIT GAME]");
- intInput = Convert.ToInt32(Console.ReadLine());
- switch (intInput)
- {
- case 1:
- {
- setCrossCounter(+1);
- town.enteringTown();
- break;
- }
- case 2:
- {
- this.setCrossCounter(+1);
- Console.WriteLine("You enter the Dark Woods");
- Console.WriteLine("[HERE I WILL ADD DW FUNCTION]");
- Console.ReadLine();
- break;
- }
- case 3:
- {
- crossCounter += 1;
- Console.WriteLine("You follow the trail towards Thunder Mountain");
- Console.WriteLine("[HERE I WILL ADD TM FUNCTION]");
- Console.ReadLine();
- break;
- }
- case 4:
- {
- crossCounter += 1;
- swamp.enteringSwamp();
- break;
- }
- case 0:
- {
- Console.WriteLine("You are about to exit the program");
- Console.WriteLine("You have ventured past the cross roads");
- Console.WriteLine(this.getCrossCounter() + " times, and reached level "); //TODO: Add level here
- Console.WriteLine("PROGRAM WILL NOW EXIT");
- Console.ReadLine();
- //TODO: Add Exit Function
- //TODO: Add Save Function
- break;
- }
- default:
- {
- crossCounter += 1;
- Console.WriteLine("Unable to make up your own mind, you rethink the last seconds");
- enteringCrossRoads();
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment