public static void init() { Console.OutputEncoding = System.Text.Encoding.GetEncoding(1252); currentPlace = new Place ("Home"); player = new Player ("John Carter",1,currentPlace); player.backpack.Add ("Test"); Console.Clear(); Console.SetWindowSize(122, 25); Console.BufferWidth = 122; Console.BufferHeight = 25; Utility.GraphicsHelper.graphicFromFile (1, "intro"); Console.ReadKey (); Utility.GraphicsHelper.ReDraw (); }
public void Travel() { int choice; Question travel = currentLocation.range; choice = travel.answerQuestion(); if (choice != 4) { currentLocation = new Place (travel.answers [choice - 1].Trim ()); Utility.TransitionHelper.travelTransition (0, travel.answers [choice - 1].Trim ()); } this.Interact (); }
public Player(string str1, int int1, Place place) { name = str1; transportation = int1; currentLocation = place; }