public void SetNewDirection(Rotation dir) { if (!cantMove) { FigureMoover.MoveTo(CurrentFigure, dir, this); } }
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; }