Example #1
0
 /// <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);
 }
Example #2
0
 /// <summary>
 /// Updates the object behaviour and property values
 /// </summary>
 public void Update()
 {
     CheckDirtyRooms();
     Elevator.DoEvents();
 }