Beispiel #1
0
 public Grid(int positionX, int positionY, GameObject gridObject, TypeOfGrid typeOfGrid)
 {
     this.positionX             = positionX;
     this.positionY             = positionY;
     this.gridObject            = gridObject;
     this.typeOfGrid            = typeOfGrid;
     this.neightbour            = new List <Grid>();
     this.neightbourNotToRemove = new List <Grid>();
     this.neightboutFourWay     = new List <Grid>();
     this.parent  = null;
     this.visited = false;
 }
Beispiel #2
0
 public void setTypeOfGrid(TypeOfGrid typeOfGrid)
 {
     this.typeOfGrid = typeOfGrid;
 }