Beispiel #1
0
 public BubbleCannon(IBubbleSpawner bubbleSpawner, IGridWrapper grid)
 {
     this.bubbleSpawner = bubbleSpawner;
     this.grid          = grid;
     queue = new Queue <Bubble>(QueueSize);
     Prepare();
 }
Beispiel #2
0
 private void Construct(IBubbleSpawner bubbleSpawner, IGridWrapper grid, IScoreManager scoreManager)
 {
     this.bubbleSpawner = bubbleSpawner;
     this.grid          = grid;
     this.scoreManager  = scoreManager;
     queue = new Queue <Bubble>(QueueSize);
     Prepare();
     allow = true;
 }
Beispiel #3
0
 public ScoreManager(IGridWrapper grid, IBubbleSpawner spawner, IScoreCalculator calculator,
                     IBubbleCollector collector, IBubbleExploder exploder, IGridManager gridManager, ScoreRange scoreRange)
 {
     this.grid        = grid;
     this.spawner     = spawner;
     this.calculator  = calculator;
     this.collector   = collector;
     this.exploder    = exploder;
     this.gridManager = gridManager;
     this.scoreRange  = scoreRange;
 }
Beispiel #4
0
 public GridManager(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Beispiel #5
0
 private void Construct(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Beispiel #6
0
 public BubbleExploder(IGridWrapper grid, IBubbleSpawner spawner)
 {
     this.grid    = grid;
     this.spawner = spawner;
 }