Ejemplo n.º 1
0
 public BubbleCannon(IBubbleSpawner bubbleSpawner, IGridWrapper grid)
 {
     this.bubbleSpawner = bubbleSpawner;
     this.grid          = grid;
     queue = new Queue <Bubble>(QueueSize);
     Prepare();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public GridManager(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Ejemplo n.º 5
0
 private void Construct(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Ejemplo n.º 6
0
 public BubbleExploder(IGridWrapper grid, IBubbleSpawner spawner)
 {
     this.grid    = grid;
     this.spawner = spawner;
 }