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