//Attaches a set of species attributes to every land unit. //Must be performed following construction. public void attach(speciesattrs species_attrs_in) { for (int i = 0; i < maxLU; i++) { land_Units[i].attach(species_attrs_in); } }
public landunit() { minShade = 0; ltID = 0; name = null; species_Attrs = null; //probReproduction = null; probReproductionOriginalBackup = null; }
//This attaches a set of species attributes to all instances of species. public static void attach(speciesattrs s) { species_Attrs = s; }
//Attaches a set of species attributes to the land unit. //Must be performed following construction. public void attach(speciesattrs spe_attr) { species_Attrs = spe_attr; }