Example #1
0
        public Patient()
        {
            Random rnd = new Random();

            if (rnd.Next() % 2 == 0)
            {
                state = PatientStates.Healthy;
            }
            else
            {
                state = PatientStates.Sick;
            }

            num++;
            name = GenerateName();
        }
Example #2
0
 public void SetSick()
 {
     state = PatientStates.Sick;
 }