// Function to redraw the map public void DisplayRedrawMap(string messageBoxHeaderText, string messageBoxText, Menu menu, string inputBoxPrompt) { Console.Clear(); ConsoleWindowHelper.DisplayHeader(Text.HeaderText); ConsoleWindowHelper.DisplayFooter(Text.FooterText); DisplayMessageBox(messageBoxHeaderText, messageBoxText); DisplayMenuBox(menu); DisplayInputBox(); DisplayStatusBox(); }
/// <summary> /// display all of the elements on the game play screen on the console /// </summary> /// <param name="messageBoxHeaderText">message box header title</param> /// <param name="messageBoxText">message box text</param> /// <param name="menu">menu to use</param> /// <param name="inputBoxPrompt">input box text</param> public void DisplayGamePlayScreen(string messageBoxHeaderText, string messageBoxText, Menu menu, string inputBoxPrompt) { // // reset screen to default window colors // Console.BackgroundColor = ConsoleTheme.WindowBackgroundColor; Console.ForegroundColor = ConsoleTheme.WindowForegroundColor; Console.Clear(); ConsoleWindowHelper.DisplayHeader(Text.HeaderText); ConsoleWindowHelper.DisplayFooter(Text.FooterText); DisplayMessageBox(messageBoxHeaderText, messageBoxText); DisplayMenuBox(menu); DisplayInputBox(); DisplayStatusBox(); }