示例#1
0
 public Game(INextFigureFactory nextFigureFactory)
 {
     _nextFigureFactory = nextFigureFactory;
 }
示例#2
0
 public Game(INextFigureFactory nextFigureFactory)
 {
     _nextFigureFactory = nextFigureFactory;
     _currentFigure     = _nextFigureFactory.GetRandomFigure();
     _nextFigure        = _nextFigureFactory.GetRandomFigure();
 }