コード例 #1
0
 public static void StartScreen()
 {
     PrintBuffer.PrintFrame();
     PrintBuffer.PrintType();
     UserInput.AnyKeyContinue();
     PrintBuffer.PrintFrame();
 }
コード例 #2
0
 public static void Print_AreaName()
 {
     if (Player.Location().hasBeenEntered)
     {
         FrameBuffer.ClearType();
         FrameBuffer.SetType(Player.Location().areaName);
         PrintBuffer.PrintType();
     }
 }
コード例 #3
0
        public static void GoodByeScreen()
        {
            GoodByeScreen bye = new GoodByeScreen();

            FrameBuffer.frame = bye.GetFrame();
            FrameBuffer.type  = bye.GetTypeWrite();
            PrintBuffer.PrintMoreFrame();
            PrintBuffer.PrintType();
            UserInput.Pause_AnyKey();
        }
コード例 #4
0
        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();
        }
コード例 #5
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; }
            }
        }
コード例 #6
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; }
            }
        }
コード例 #7
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();
            }
        }
コード例 #8
0
 private void PrintType()
 {
     Console.WriteLine("");
     PrintBuffer.PrintType();
 }
コード例 #9
0
 public void printArea()
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(Player.Location().areaLook);
     PrintBuffer.PrintType("");
 }
コード例 #10
0
 public void printString(string u)
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(u);
     PrintBuffer.PrintType("");
 }
コード例 #11
0
 public void printArea(Area u)
 {
     FrameBuffer.ClearType();
     FrameBuffer.AddLine_typeWrite(u.areaLook);
     PrintBuffer.PrintType("");
 }