Example #1
0
    private void SetMazeCell(MazeCellIndex index, MazeCellType type)
    {
        maze[index.row, index.col].type = type;

        // Ejecutar evento
        if (OnMazeCellTypeChanged != null)
        {
            OnMazeCellTypeChanged(index);
        }
    }
Example #2
0
 public MazeCell(int x, int y, MazeCellType type)
 {
     Coordinates = new Cell(x, y);
     CellType    = type;
 }
Example #3
0
 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
 }
Example #4
0
 public void SetType(MazeCellType type)
 {
     Type = type;
 }
Example #5
0
 private void Initialize(GridPoint position, MazeCellType type, string item)
 {
     Position = position;
     Type     = type;
 }
Example #6
0
 //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);
 }