Exemple #1
0
 public Kitchen(int cookersNb)
 {
     this.RoomCounter = Counter.GetInstance();
     this.WashMan     = new Washer();
     this.CreateCookers(cookersNb);
     this.Chief = new CookChief(this.Cookers, this.RoomCounter);
 }
 /// <summary>
 /// Instantiate a cooker
 /// </summary>
 /// <param name="toolsStorage"></param>
 public Cooker(int id, Washer washer, Oven oven, Position position)
 {
     this.Id             = id;
     this.ToolsStorage   = ToolsManager.GetInstance();
     this.DevicesStorage = DevicesManager.GetInstance();
     this.WasherEngine   = washer;
     this.OvenCook       = oven;
     this.Position       = position;
     this.IsAvailable    = true;
 }