private void SetMazeCell(MazeCellIndex index, MazeCellType type) { maze[index.row, index.col].type = type; // Ejecutar evento if (OnMazeCellTypeChanged != null) { OnMazeCellTypeChanged(index); } }
public MazeCell(int x, int y, MazeCellType type) { Coordinates = new Cell(x, y); CellType = type; }
public MazeCell(MazeCellType pType, bool pVisited) { type = pType; // Bloqueado / Desbloqueado visited = pVisited; // Indica si se ha visitado esa celda en la generaciĆ³n, para no volverla a visitar }
public void SetType(MazeCellType type) { Type = type; }
private void Initialize(GridPoint position, MazeCellType type, string item) { Position = position; Type = type; }
//public bool ContainsKey { get { return !string.IsNullOrWhiteSpace(Key); } } //public string Door { get; set; } //public bool ContainsDoor { get { return !string.IsNullOrWhiteSpace(Door); } } //public bool IsCurrentPosition { get; private set; } = false; public MazeCell(GridPoint position, MazeCellType type) { Initialize(position, type, string.Empty); }