Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public static void OutputToConsole(string mes)
 {
     if (mConsoleOutput == null)
     {
         Logger.Log(mes);
     }
     else
     {
         mConsoleOutput.Print(mes);
     }
 }
Exemplo n.º 3
0
 public void Render()
 {
     outputConsole.Print(FormatData());
 }
Exemplo n.º 4
0
 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");
 }
Exemplo n.º 5
0
        /*
         * 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());
        }
Exemplo n.º 6
0
 public void Render()
 {
     _output.Print(FormatData());
 }