public void OnTickChanges(object state)
        {
            var hp = state as Hospital;

            HospitalManager.CheckConditionAndTreat(hp, this);

            if (ExtraDoctor != null) // Handles extra doctors if they still exists.
            {
                if (patients.Count != 0)
                {
                    ExtraDoctor.ExhaustedLevel += 5;
                }

                if (ExtraDoctor.ExhaustedLevel >= 20)
                {
                    if (hp.ExtraDoctorsCount() > 0)
                    {
                        ExtraDoctor = hp.DequeueExtraDoctor();
                    }
                    else
                    {
                        ExtraDoctor = null;
                    }
                }
            }
        }
Beispiel #2
0
        public void OnTickChanges(object state)
        {
            var hp = state as Hospital;

            HospitalManager.CheckConditionAndTreat(hp, this);
        }