A4L

Engine.cs

A4L
Apr 26th, 2020
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace testAdventure
  8. {
  9.     static class Engine
  10.     {
  11.         public static void Initilise()
  12.         {
  13.             Console.SetWindowSize(150, 40); // Default Size = 120 : 30
  14.             Player.Initilise();
  15.             Level.Initilise();
  16.             CommandDictonary.Initialise();
  17.             //DynamicWordLists.Build();
  18.         }
  19.  
  20.         public static void StartScreen()
  21.         {
  22.             PrintBuffer.PrintFrame();
  23.             PrintBuffer.PrintType();
  24.             UserInput.AnyKeyContinue();
  25.             PrintBuffer.PrintFrame();
  26.         }
  27.  
  28.         public static void PlayGame()
  29.         {
  30.             AreaUtilities.ActivateArea(Player.Location());
  31.             Console.Write("\n> ");
  32.             UserInput.GetInput(Console.ReadLine());
  33.         }
  34.  
  35.         public static void GoodByeScreen()
  36.         {
  37.             GoodByeScreen bye = new GoodByeScreen();
  38.             FrameBuffer.frame = bye.GetFrame();
  39.             FrameBuffer.type = bye.GetTypeWrite();
  40.             PrintBuffer.PrintMoreFrame();
  41.             PrintBuffer.PrintType();
  42.             UserInput.Pause_AnyKey();
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment