예제 #1
0
 public void DrowBorders()
 {
     DrowingField.Line(DrowingField.StaticWidth, 0, DrowingField.StaticWidth, DrowingField.StaticHeight);
     DrowingField.Line(0, DrowingField.StaticHeight, DrowingField.StaticWidth, DrowingField.StaticHeight);
     DrowingField.Line(0, 0, DrowingField.StaticWidth, 0);
     DrowingField.Line(0, 0, 0, DrowingField.StaticHeight);
 }
예제 #2
0
        public void DrowNextFigure(Figure figure, int level)//рисует следующую фигуру справа и упровни
        {
            int x = figure.PositionOnFildX, y = figure.PositionOnFildY;

            figure.PositionOnFildX = (staticCountRectX + distanceXForOutData);
            figure.PositionOnFildY = (distanceYForOutData);
            figure.Draw();
            figure.PositionOnFildX = x; figure.PositionOnFildY = y;
            DrowingField.OutText(staticCountRectX + distanceXForOutData + 1, distanceYForOutData + 12, "Линии: " + countOfLines.ToString(), DrowingField.StaticSizeOfFigure);
            DrowingField.OutText(staticCountRectX + distanceXForOutData + 1, distanceYForOutData + 14, "Уровень: " + level.ToString(), DrowingField.StaticSizeOfFigure);
        }
예제 #3
0
 public void WipeOff()
 {
     DrowingField.VipeOffRectangle(positionOnFildX, positionOnFildY);
 }
예제 #4
0
 public void Draw()
 {
     DrowingField.FillRectangle(positionOnFildX, positionOnFildY, brush);
 }
예제 #5
0
 public void SetArea(Graphics gr, Color beckgroungKolor, int width1, int height1, int offsetX, int offsetY)//определяет параметры для вывода
 {
     DrowingField.SetArea(gr, beckgroungKolor, width1, height1, offsetX, offsetY);
 }
예제 #6
0
 public void ShowGameIsOver()
 {
     DrowingField.OutText(3, staticCountRectY / 2 + 4, "Game is over! ", DrowingField.StaticSizeOfFigure, 20);
 }
예제 #7
0
 public void Cliear()
 {
     DrowingField.Clear();
 }