Exemplo n.º 1
0
        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 ();
        }
Exemplo n.º 2
0
        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 ();
        }
Exemplo n.º 3
0
 public Player(string str1, int int1, Place place)
 {
     name = str1;
     transportation = int1;
     currentLocation = place;
 }