Example #1
0
 /// <summary>
 /// Sets the amount of cleaners and how many HTE it takes to clean a room
 /// </summary>
 /// <param name="amount">amount of cleaners</param>
 /// <param name="cleaningTime">amount of HTE it takes to clean a room</param>
 public void SetCleaners(int amount, int cleaningTime)
 {
     CleanDuration = cleaningTime;
     for (int i = 1; i <= amount; i++)
     {
         HFactory = new HumanFactory();
         Human cleaner = HFactory.CreateHuman("cleaner");
         cleaner.Name = "Cleaner" + i;
         Humans.Add(cleaner);
     }
 }
Example #2
0
 public HEListener()
 {
     _Hotel   = Hotel.GetInstance();
     HFactory = new HumanFactory();
 }