Пример #1
0
        public FieldSimulation(string mapsProgram, Player plLink)
        {
            playerLink = plLink;
            _ballsManager = new BallsManager(this);
            _ballsManager.lostBall += onLostBall;

            _rocketLauncher = new RocketLauncher(_ballsManager);

            fieldCells = new FieldCells(mapsProgram, playerLink.roomLink);
            fieldCells.cellCleared += onCellCleared;
            fieldCells.fieldCleared += onFieldCleared;

            _laserShotsManager = new LaserShotsManager(fieldCells, bouncer, this);
            _freezer = new Freezer(GameConfig.FREEZER_SLOWDOWN_TIME, GameConfig.FREEZER_FREEZE_TIME);
        }
Пример #2
0
 public LaserShotsManager(FieldCells cellsLink, Bouncer bouncerLink, FieldSimulation sim)
 {
     _cellsLink = cellsLink;
     _bouncerLink = bouncerLink;
     _fieldLink = sim;
 }