/// <summary> /// Displays battleground. /// </summary> /// <param name="dungeon"></param> /// <param name="player"></param> /// <param name="battleResult"></param> public static void PrintBattleGround(List <char[]> dungeon, Player player, StringBuilder battleResult) { Console.Clear(); Visualisator.PrintOnTheConsole(BattleTemplate); Visualisator.PrintOnTheConsole(battleResult.ToString()); Visualisator.PrintOnTheConsole("Press any key to continue:"); Console.ReadKey(true); PrintAllMap(dungeon, player); }
/// <summary> /// Draw all map on the console. /// </summary> /// <param name="dungeon"></param> /// <param name="player"></param> public static void PrintAllMap(List <char[]> dungeon, Player player) { Visualisator.PrintDungeon(dungeon, player); Visualisator.PrintOnTheConsole(LevelGenerator.CurrentMapLegend); Console.SetWindowPosition(0, 0); }