예제 #1
0
 public void WorkTheNextShift()
 {
     if (HoneyVault.ConsumeHoney(CostPerShift))
     {
         DoJob();
     }
 }
예제 #2
0
 protected override void DoJob()
 {
     eggs += EGGS_PER_SHIFT;
     foreach (Bee worker in workers)
     {
         worker.WorkTheNextShift();
     }
     HoneyVault.ConsumeHoney(unassignedWorkers * HONEY_PER_UNASSIGNED_WORKER);
     UpdateStatusReport();
 }