public IList <Cell> GetNeighboursOfCell(int idCell)
        {
            IList <Cell> associatedNeighbours = new List <Cell>();

            if (Neighbours.TryGetValue(idCell, out associatedNeighbours))
            {
                return(associatedNeighbours);
            }
            return(null);
        }
예제 #2
0
 public Point GetNeighbour(Vector2 direction)
 {
     Neighbours.TryGetValue(direction, out var point);
     return(point);
 }