예제 #1
0
        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>();
        }
예제 #2
0
 /// <summary>
 /// Store CurrentRound and create a new one.
 /// </summary>
 public void CreateNewRound()
 {
     FinishedRounds.Enqueue(CurrentRound);
     CurrentRound = new GrillRound(++_numberOfRounds, Length, Width);
 }