Exemple #1
0
 public Game(IScene scene, IRandomFigureSelector randomFigureSelector)
 {
     scene.Cup = new TetrisCup(10, 20, new Point[] { });
     scene.NextFigure(randomFigureSelector.RandomFigure());
     this.NextFigure = randomFigureSelector.RandomFigure();
     Scene = scene;
     Level = 1;
     SpeedInSeconds = 0.5;
     _randomFigureSelector = randomFigureSelector;
 }
Exemple #2
0
 public Game(IScene scene, IRandomFigureSelector randomFigureSelector)
 {
     scene.Cup = new TetrisCup(10, 20, new Point[] { });
     scene.NextFigure(randomFigureSelector.RandomFigure());
     this.NextFigure       = randomFigureSelector.RandomFigure();
     Scene                 = scene;
     Level                 = 1;
     SpeedInSeconds        = 0.5;
     _randomFigureSelector = randomFigureSelector;
 }