Beispiel #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);
        }
Beispiel #2
0
 public void TransformMaze(MazeTransformationStep step)
 {
     mazefield[step.coordinate.X][step.coordinate.Y].type = step.typeAfterTransform;
 }
Beispiel #3
0
 public bool WouldChangeMazeFieldType(MazeTransformationStep step)
 {
     return(WouldChangeMazeFieldType(step.coordinate, step.typeAfterTransform));
 }