Exemplo n.º 1
0
    public void MakeBooking(Patient patient)
    {
        if(StaffManager.CheckForStaff(Role.practitioner))
        {
            if(!PatientManager.PatientsWaiting())
            {

            }
            state = State.booking;
            patient.state = Patient.State.booking;
            PatientManager.AddPatientToWaiting (patient);
            patient.timeToStayAtWaypoint = bookingTime;
            patient.SetStaffTarget(StaffManager.AssignPractitioner());

        }
        else
        {
            print (staffName + ": Sorry, for some reason we don't have a practitioner in the building."); // Need to add random messages here.
            state = State.waitingAtDesk;
            patient.GoHomePissed(RandomMessages.GetAngryHomeMessage()); //Need to add Random Messages for no practitioner.
        }
    }