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