Esempio n. 1
0
 private void Construct(IBubbleCannon cannon, IUserInput input, IGridWrapper gridWrapper)
 {
     this.cannon = cannon;
     this.input  = input;
     this.grid   = gridWrapper;
     steps       = new Vector3[3];
 }
Esempio n. 2
0
 public BubbleCannon(IBubbleSpawner bubbleSpawner, IGridWrapper grid)
 {
     this.bubbleSpawner = bubbleSpawner;
     this.grid          = grid;
     queue = new Queue <Bubble>(QueueSize);
     Prepare();
 }
Esempio n. 3
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;
 }
Esempio n. 4
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;
 }
Esempio n. 5
0
 public void InitField(IGridWrapper gridWrapper)
 {
     gridWrapper.AddColumnDefinitions(_engine.Field.DimensionX);
     gridWrapper.AddRowDefinitions(_engine.Field.DimensionY);
     gridWrapper.AddUnitView(_engine.Field);
 }
Esempio n. 6
0
 public GridManager(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Esempio n. 7
0
 private void Construct(IBubbleSpawner spawner, IGridWrapper grid)
 {
     this.spawner = spawner;
     this.grid    = grid;
 }
Esempio n. 8
0
 public BubbleCollector(IGridWrapper grid, ScoreRange scoreRange)
 {
     this.grid       = grid;
     this.scoreRange = scoreRange;
 }
Esempio n. 9
0
 public BubbleExploder(IGridWrapper grid, IBubbleSpawner spawner)
 {
     this.grid    = grid;
     this.spawner = spawner;
 }