Exemplo n.º 1
0
 public void NextLevel()
 {
     _levelStartPosition = _orientation == GridOrientation.Horizontal
         ? _levelStartPosition.MoveDown(1)
         : _levelStartPosition.MoveRight(1);
     _currentSlot = new GridArea(_levelStartPosition, _levelStartPosition);
 }
Exemplo n.º 2
0
 public void NextSlot()
 {
     _currentSlot = _orientation == GridOrientation.Horizontal
         ? _currentSlot.AdjacentRight()
         : _currentSlot.AdjacentDown();
 }
Exemplo n.º 3
0
 public void ExtendSlot()
 {
     _currentSlot = _orientation == GridOrientation.Horizontal
         ? _currentSlot.ExtendRight(1)
         : _currentSlot.ExtendDown(1);
 }
Exemplo n.º 4
0
 public ZigZagPlacement(GridPosition startPosition, GridOrientation orientation)
 {
     _orientation        = orientation;
     _levelStartPosition = startPosition;
     _currentSlot        = new GridArea(startPosition, startPosition);
 }