public void RenderEvents() { //Console.WriteLine("Number of separation events: " + _currentEvents.events.OfType<SeperationEvent>().Count()); CurrentEvents.RenderEvents(); _outputConsole.Print("Number of separation events: " + CurrentEvents.events.OfType <SeperationEvent>().Count()); }
public static void OutputToConsole(string mes) { if (mConsoleOutput == null) { Logger.Log(mes); } else { mConsoleOutput.Print(mes); } }
public void Render() { outputConsole.Print(FormatData()); }
public void Render(GameTime time, IConsoleOutput console) { console.Indent = this.Rectangle.X; console.CursorX = Rectangle.X; console.CursorY = Rectangle.Y; console.Fore = ConsoleColor.Yellow; console.Print("S"); console.Fore = ConsoleColor.Cyan; console.Print("a"); console.Fore = ConsoleColor.Gray; console.Print("k"); console.Fore = ConsoleColor.Red; console.Print("u"); console.Fore = ConsoleColor.Blue; console.Print("r"); console.Fore = ConsoleColor.Magenta; console.Print("a"); console.Print(" "); console.Fore = ConsoleColor.Gray; console.Print("B"); console.Fore = ConsoleColor.Yellow; console.Print("l"); console.Fore = ConsoleColor.Cyan; console.Print("u"); console.Fore = ConsoleColor.Red; console.Print("e"); }
/* * public void RenderSeperationEvent(SeperationEvent seperationEvent) * { * string timeOfOccurence = seperationEvent._occurrenceTime;// + seperationEvent.OccurrenceTime.ToLongTimeString(); * string track1 = seperationEvent._InvolvedTracks[0]._Tag; * string track2 = seperationEvent._InvolvedTracks[1]._Tag; * * string seperationEventToRender = * $"Warning: Seperation event occurred at {timeOfOccurence} - Involved track are {track1} and {track2}."; * * _consoleOutput.Print(seperationEventToRender); * } */ public void RenderEvent(Event Event) { _consoleOutput.Print(Event.FormatData()); }
public void Render() { _output.Print(FormatData()); }