예제 #1
0
        /// <summary>
        /// Ход вправо
        /// </summary>
        public void MoveRight()
        {
            if (figure.CanMoveRight())
            {
                MyGraphics.EraseFigure(figure, form.splitContainer1.Panel2);
                figure.MoveRight();
                MyGraphics.DrawCells(neighborsList, form.splitContainer1.Panel2);
                MyGraphics.DrawFigure(figure, form.splitContainer1.Panel2);

                neighborsList = figure.CheckNeighboringCells();
            }
        }