@ludw1gj/maze-generation
Version:
Maze generation algorithms.
25 lines (24 loc) • 625 B
TypeScript
import { Direction } from "./direction";
export interface Position {
x: number;
y: number;
}
export interface CellWalls {
north: boolean;
east: boolean;
south: boolean;
west: boolean;
}
export declare class Cell {
private _position;
private _isVisited;
private _walls;
constructor(position: Position, isVisited?: boolean, walls?: CellWalls);
createCopy(): Cell;
readonly position: Position;
readonly isVisited: boolean;
readonly walls: CellWalls;
setVisited(): void;
destroyWall(direction: Direction): void;
getChangeInPosition(dir: Direction): Position;
}