//--------------------------------------------------------------------- void ISpeciesCohortsDisturbance.MarkCohortsForDeath(ISpeciesCohorts cohorts, ISpeciesCohortBoolArray isDamaged) { cohortSelector.Harvest(cohorts, isDamaged); int cohortsDamaged = 0; for (int i = 0; i < isDamaged.Count; i++) { if (isDamaged[i]) { //if this cohort is killed, update the damage table (for the stand of this site) with this species name SiteVars.Stand[currentSite].UpdateDamageTable(cohorts.Species.Name); //Model.Core.UI.WriteLine("Damaged: {0}.", cohorts.Species.Name); //and increment the cohortsDamaged cohortsDamaged++; } } SiteVars.CohortsDamaged[currentSite] += cohortsDamaged; }
//--------------------------------------------------------------------- void ISpeciesCohortsDisturbance.MarkCohortsForDeath(ISpeciesCohorts cohorts, ISpeciesCohortBoolArray isKilled) { cohortSelector.Harvest(cohorts, isKilled); }