20 lines
594 B
C#
20 lines
594 B
C#
namespace Hallucinate.GameSetup.Maze
|
|
{
|
|
/// <summary>
|
|
/// Interface for all maze generation algorithms.
|
|
/// Supports both immediate and step-by-step (animated) generation.
|
|
/// </summary>
|
|
public interface IMazeAlgorithm
|
|
{
|
|
/// <summary>
|
|
/// Generates the maze immediately in one frame.
|
|
/// </summary>
|
|
void Generate(MazeGrid grid);
|
|
|
|
/// <summary>
|
|
/// Generates the maze step-by-step for visualization.
|
|
/// </summary>
|
|
System.Collections.IEnumerator GenerateStepByStep(MazeGrid grid, int cellsPerFrame);
|
|
}
|
|
}
|