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