Beispiel #1
0
 public void Draw()
 {
     TopWall.Draw();
     BottomWall.Draw();
     LeftWall.Draw();
     RightWall.Draw();
     Terrain.Draw();
 }
Beispiel #2
0
 public static void DrawAll()
 {
     Console.ForegroundColor = ConsoleColor.White;
     try {
         if (State.ScreenNeedsRedraw)
         {
             BottomWall.Draw();
             TopWall.Draw();
             ScoreBoard.DrawScoreBoard();
             Player1.Draw();
             Player2.Draw();
         }
         else if (State.PlayerNeedsRedraw)
         {
             Player1.Draw();
             Player2.Draw();
         }
         Ball.Draw();
     }
     catch (Exception e) {
         throw new InvalidOperationException("You need to use InitializeGame method before. " + e.Message);
     }
 }