Пример #1
0
        static void Main(string[] args)
        {
            var state = new GameApp();

            state.EnterButton();   // Menu -> Game
            state.TabButton();     // Game -> Shop
            state.KeyboardInput(); // Display item
            state.EscapeButton();  // Shop -> Menu
        }
Пример #2
0
 public ChatState(GameApp app) : base(app)
 {
     Console.WriteLine("Welcome in chat!");
 }
Пример #3
0
 public InGameState(GameApp app) : base(app)
 {
     Console.WriteLine("Let's start playing!");
 }
Пример #4
0
 public MenuState(GameApp app) : base(app)
 {
     Console.WriteLine("Welcome in menu!");
 }
Пример #5
0
 public ShopState(GameApp app) : base(app)
 {
     Console.WriteLine("Welcome in shop!");
 }
Пример #6
0
 public GameState(GameApp app)
 {
     parentApp = app;
 }