static void Main(string[] args) { Game game = new Game(); TimerCallback timerCallback = game.TickTock; Timer timer = new Timer(timerCallback, null, 1000, game.RefreshRate); HandlingInput hi = new HandlingInput(); hi.GetInput(); }
static void StartGame(double rooms, int floors, GameSpeed speed) { Motel vMotel = new Motel(rooms, floors); Game vGame = new Game(vMotel, speed); TimerCallback timerCallBack = vGame.TickTock; Timer vTimer = new Timer(timerCallBack, null, 1000, vGame.GetRefreshRate()); HandlingInput vInput = new HandlingInput(vGame); Console.Clear(); vGame.Help(); Console.WriteLine("Press any key to continue"); Console.ReadKey(); Console.Clear(); vGame.RoomReport(); vInput.Play(); }