Esempio n. 1
0
 public void SetNewDirection(Rotation dir)
 {
     if (!cantMove)
     {
         FigureMoover.MoveTo(CurrentFigure, dir, this);
     }
 }
Esempio n. 2
0
 public void NextTick()
 {
     cantMove = true;
     FigureMoover.MoveTo(CurrentFigure, Rotation.down, this);
     if (landed)
     {
         AddFigureToField();
         landed        = false;
         CurrentFigure = new Figure(NextFigure.FigureType);
         if (NextFigure != null)
         {
             Printer.PaintFigureBlack(NextFigure);
         }
         NextFigure = new Figure(blockTypes[rnd.Next(0, blockTypes.Length)])
         {
             Coord = new Point(12, 3)
         };
         Printer.PrintFigure(NextFigure);
     }
     cantMove = false;
 }