예제 #1
0
        internal CheckedOut Clone()
        {
            var checkedOutCopy = new CheckedOut();

            checkedOutCopy.healthyPatients = new List <Patient>();
            for (int i = 0; i < healthyPatients.Count; i++)
            {
                checkedOutCopy.healthyPatients.Add(this.healthyPatients[i].Clone());
            }
            return(checkedOutCopy);
        }
        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);
        }