Exemple #1
0
        public static void PrintLevel(LevelModel level)
        {
            string[] levelPrintable = Composer.Compose(level.Matrix);
            var      levelState     = new StaticElement(levelPrintable);

            levelState.Print();
        }
Exemple #2
0
 /// <summary>
 /// Prints the set of elements on the screen.
 /// </summary>
 public override void Print()
 {
     if (!_menuFrame.Visible)
     {
         _menuFrame.Print();
     }
     for (int i = 0; i < Elements.Count; i++)
     {
         if (i == _selected)
         {
             Console.ForegroundColor = ColorSelectedForeground;
             Console.BackgroundColor = ColorSelectedBackground;
             Elements[i].Print();
             Console.ForegroundColor = ColorForeground;
             Console.BackgroundColor = ColorBackground;
         }
         else
         {
             Elements[i].Print();
         }
     }
     IsShown = true;
 }