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); }
public LaserShotsManager(FieldCells cellsLink, Bouncer bouncerLink, FieldSimulation sim) { _cellsLink = cellsLink; _bouncerLink = bouncerLink; _fieldLink = sim; }