public Grill(int length, int width, IMeatChooserStrategy strategy, IMaxRectangle maxRectangle) { Length = length; Width = width; _strategy = strategy; _maxRectangle = maxRectangle; CurrentRound = new GrillRound(++_numberOfRounds, Length, Width); FinishedRounds = new Queue <GrillRound>(); _menus = new List <Menu>(); _meats = new List <Meat>(); }
/// <summary> /// Store CurrentRound and create a new one. /// </summary> public void CreateNewRound() { FinishedRounds.Enqueue(CurrentRound); CurrentRound = new GrillRound(++_numberOfRounds, Length, Width); }