public void AllExits()
        {
            List <Exit> exitList = Player.Location().exitsList;
            string      north    = "?";
            string      south    = "?";
            string      east     = "?";
            string      west     = "?";

            //string north, south, east, west;
            foreach (Exit exit in exitList)
            {
                switch (exit.direction)
                {
                case "north":
                    north = exit.look;
                    break;

                case "south":
                    south = exit.look;
                    break;

                case "east":
                    east = exit.look;
                    break;

                case "west":
                    west = exit.look;
                    break;
                }
            }
            List <string> build = new List <string>();

            build.Add("");
            build.Add("To Your North:");
            build.Add(north);
            build.Add("");
            build.Add("To Your South:");
            build.Add(south);
            build.Add("");
            build.Add("To Your East:");
            build.Add(east);
            build.Add("");
            build.Add("To Your West:");
            build.Add(west);

            FrameBuffer.ClearType();
            FrameBuffer.type = build;
            PrintBuffer.PrintType();
        }
Beispiel #2
0
        public static void ActivateArea(Area area)
        {
            switch (Player.Location().hasBeenEntered)
            {
            case false:
            {
                Player.Location().setEntered();         // Set Bool Value so app knows we have been here before
                FrameBuffer.ClearType();
                FrameBuffer.type = area.cinimatic;
                PrintBuffer.PrintType();
                break;
            }

            case true:
            { break; }
            }
        }
Beispiel #3
0
        public static void ActivateArea(Area area)
        {
            //Console.WriteLine(area.Name());
            switch (Player.AreaEntered())
            {
            case false:
            {
                Player.SetAreaEntered();         // Set Bool Value so app knows we have been here before
                FrameBuffer.ClearType();
                FrameBuffer.type = area.Cinamatic();
                PrintBuffer.PrintType();
                break;
            }

            case true:
            { break; }
            }
        }
Beispiel #4
0
        public static void Print_MoveToExit(string cmd)
        {
            Directions Direction = new Directions();
            Exit       exit      = Player.Location().exitsList[Direction.Exit[cmd]];

            if (!exit.used)
            {
                FrameBuffer.ClearType();
                FrameBuffer.AddLine_BlankType();
                FrameBuffer.SetType(exit.move);
                PrintBuffer.PrintType("");
                exit.used = true;
            }
            else //TODO Add Exit Data for walking to a exit (dataFile --Exit-USED:)
            {
                if (exit.avaliable)
                {
                    FrameBuffer.ClearType();
                    FrameBuffer.AddLine_BlankType();
                    FrameBuffer.SetType("You head " + TextUtils.FirstCharToUpper(cmd) + " again.");
                    PrintBuffer.PrintType();
                }
                else
                {
                    FrameBuffer.ClearType();
                    FrameBuffer.AddLine_BlankType();
                    FrameBuffer.SetType(exit.move);
                    PrintBuffer.PrintType();
                }
            }

            if (PlayerMove.ExitIsOpen(cmd))
            {
                FrameBuffer.SetFrame("\n------------------------------------\n");
                PrintBuffer.PrintMoreFrame();
            }
        }
 private void LookArea(string command)
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(area.LookDescription());
     PrintType();
 }
 public void printArea()
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(Player.Location().areaLook);
     PrintBuffer.PrintType("");
 }
 public void printString(string u)
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(u);
     PrintBuffer.PrintType("");
 }
 public void printArea(Area u)
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(u.areaLook);
     PrintBuffer.PrintType("");
 }