Beispiel #1
0
 //****STATIC FIND-TOWER-FUNCTIONS****
 public static Field<bool> FindAllClusterRecurse(FieldIndex ind, Field<bool> taken)
 {
     taken[ind] = true;
     foreach( FieldIndex i in ind.GetNeighbours() ){
         if( Control.cState.field[i] == Control.cState.field[ind] && taken[i] == false){
             taken = FindAllClusterRecurse(i, taken);
         }
     }
     return taken;
 }