public Hospital(int nrOfPatients, int iva, int sanatorium) { extraDoctors = HospitalManager.GenerateExtraDoctors(); CurrentDay = 1; AfterLife = new AfterLife(); CheckedOut = new CheckedOut(); PatientQueue = new PatientQueue(nrOfPatients); Iva = new IVA(this, iva); Sanatorium = new Sanatorium(this, sanatorium); }
internal AfterLife Clone() { var al = new AfterLife(); al.deadPatients = new List <Patient>(); for (int i = 0; i < deadPatients.Count; i++) { al.deadPatients.Add(this.deadPatients[i].Clone()); } return(al); }