Ejemplo n.º 1
0
 public BlockMoveController(BlockController[,] blocks, BlocksGenerator blocksGenerator, BlockGameGenerator blockGameGenerator)
 {
     _blocks                       = blocks;
     _blocksGenerator              = blocksGenerator;
     _blockGameGenerator           = blockGameGenerator;
     _blockGameGenerator.AddBlock += _blockGameGenerator_AddBlock;
 }
Ejemplo n.º 2
0
 public BlockStateController(BlockGameGenerator blockGameGenerator, BlockGamePoleController blockGamePole, DestroyBlock destroyBlock)
 {
     _blockGameGenerator = blockGameGenerator;
     _blockGamePole      = blockGamePole;
     _destroyBlock       = destroyBlock;
     _blockGameGenerator.GenerateStartBorder();
     CurrentState               = StateUpdate;
     _blockGamePole.EndMove    += OnEndMove;
     _blockGamePole.MoveClick  += OnMoveClick;
     _blockGamePole.EndNotMove += OnEndNotMove;
 }
Ejemplo n.º 3
0
 public BlockGameController(BlockPoolView blockPool, IDictionary <Side, Sprite> sideSprites, BlockSpritesViewDescription spritesViewDescription, BlockView previewBlock)
 {
     _blockPool                           = blockPool;
     _sideSprites                         = sideSprites;
     _spritesViewDescription              = spritesViewDescription;
     _previewBlock                        = previewBlock;
     _blocksGenerator                     = new BlocksGenerator(_blockPool, _spritesViewDescription);
     _blocksGenerator.ChangeBlockPrewiew += _blocksGenerator_ChangeBlockPrewiew;
     _blocks                  = new BlockController[_weightGamePole, _heightGamePole];
     _blockGameGenerator      = new BlockGameGenerator(_blocks, _borderGamePole, _weightGamePole, _heightGamePole, _blocksGenerator, _spritesViewDescription, _sideSprites);
     _blockGamePoleController = new BlockGamePoleController(_blocks, _weightGamePole, _heightGamePole, _borderGamePole, _blockGameGenerator);
     _destroyBlock            = new DestroyBlock(_blocksGenerator, _blocks, _blockGameGenerator, _blockPool);
     _blockStateController    = new BlockStateController(_blockGameGenerator, _blockGamePoleController, _destroyBlock);
 }
Ejemplo n.º 4
0
 public ReverseMoveController(BlockController[,] blocks, BlocksGenerator blocksGenerator, BlockGameGenerator blockGameGenerator)
 {
     _blocks             = blocks;
     _blocksGenerator    = blocksGenerator;
     _blockGameGenerator = blockGameGenerator;
 }
Ejemplo n.º 5
0
 public DestroyBlock(BlocksGenerator blocksGenerator, BlockController[,] blocks, BlockGameGenerator blockGameGenerator, BlockPoolView blockPool)
 {
     _blocksGenerator             = blocksGenerator;
     _blocks                      = blocks;
     _blockPool                   = blockPool;
     blockGameGenerator.AddBlock += _blockGameGenerator_AddBlock;
 }