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 }
public ChatState(GameApp app) : base(app) { Console.WriteLine("Welcome in chat!"); }
public InGameState(GameApp app) : base(app) { Console.WriteLine("Let's start playing!"); }
public MenuState(GameApp app) : base(app) { Console.WriteLine("Welcome in menu!"); }
public ShopState(GameApp app) : base(app) { Console.WriteLine("Welcome in shop!"); }
public GameState(GameApp app) { parentApp = app; }