// private constructor for cloning private cInfection(int IncubationPeriod, int InfectiousPeriod, int Year, int Week, cDisease Disease, cBackground Background, string InfectingAnimalID) { mvarIncubationPeriod = IncubationPeriod; mvarInfectiousPeriod = InfectiousPeriod; mvarYear = Year; mvarWeek = Week; mvarDisease = Disease; mvarBackground = Background; mvarInfectingAnimalID = InfectingAnimalID; mvarIsFatal = mvarDisease.GetAnimalDies(); // EER: set the infection history if (mvarIsFatal) { mvarNaturalImmunity = "Infected_died"; } else { mvarNaturalImmunity = "Infected_recovered"; } }