Пример #1
0
        public MazeTransformationStep SetMazeTypeOnPos(int x, int y, MazeFieldType type)
        {
            var step = new MazeTransformationStep()
            {
                coordinate = new MazeCoordinate()
                {
                    X = x, Y = y
                }, typeAfterTransform = type
            };

            mazefield[x][y].type = type;
            this.drawCallback?.Invoke(step);

            return(step);
        }
Пример #2
0
 public void TransformMaze(MazeTransformationStep step)
 {
     mazefield[step.coordinate.X][step.coordinate.Y].type = step.typeAfterTransform;
 }
Пример #3
0
 public bool WouldChangeMazeFieldType(MazeTransformationStep step)
 {
     return(WouldChangeMazeFieldType(step.coordinate, step.typeAfterTransform));
 }