/// <summary> /// Deleting all visitors and tell them they can leave /// </summary> public void LeaveCinema() { for (int i = 0; i < CurrentHumans.Count; i++) { (CurrentHumans[i] as Visitor).Communicate(InteractStatus.DONE_BEING_HELPED); } CurrentHumans.Clear(); }
/// <summary> /// People will leave facility when they are done interacting /// </summary> /// <param name="human"></param> public void LeaveFacility(Human human) { CurrentHumans.Remove(human); }
/// <summary> /// When human want's to interact with the facility, he will first join the facility /// </summary> /// <param name="human"></param> public void JoinFacility(Human human) { CurrentHumans.Add(human); }