/// <summary> /// Creates an elevator for the hotel. This is not done in the constructor as this would cause erros bc Hotel is a singleton and elevator also creates hotel. /// </summary> public void CreateElevator(int elevatorDelay) { Elevator = new Elevator(elevatorDelay); }
/// <summary> /// Updates the object behaviour and property values /// </summary> public void Update() { CheckDirtyRooms(); Elevator.DoEvents(); }