protected override void Initialize()
        {
            _hospital      = new Hospital(this, 15);
            _ambulance     = new Ambulance(this, 15);
            _callCenter    = new EmergencyCallCenter(this);
            disaster       = new Disaster(this, 5);
            _emsVehicle    = new EMSVehicle(this);
            _rescueVehicle = new RescueVehicle(this);

            //SetPatients(10);
            savedPatients = new List <Patient>();
        }
Exemple #2
0
        protected override void Initialize()
        {
            _hospital         = new Hospital(this, 15);
            _ambulanceManager = new AmbulanceManager(this);
            _ambulance        = new Ambulance(this);
            _callCenter       = new EmergencyCallCenter(this);
            _emsVehicle       = new EMSVehicle(this);
            _rescueVehicle    = new RescueVehicle(this);

            patients = new List <Patient>();

            // set num of patients with status
            immediate = 3;
            delayed   = 4;
            minor     = 5;
            dead      = 2;

            // set 14 patients
            for (int i = 0; i < immediate; i++)
            {
                patients.Add(new Patient(this, PATIENT_STATUS.Immediate));
            }

            for (int i = 0; i < delayed; i++)
            {
                patients.Add(new Patient(this, PATIENT_STATUS.Delayed));
            }

            for (int i = 0; i < minor; i++)
            {
                patients.Add(new Patient(this, PATIENT_STATUS.Minor));
            }

            for (int i = 0; i < dead; i++)
            {
                patients.Add(new Patient(this, PATIENT_STATUS.Dead));
            }
        }