public ServiceLibrary(IAvidCalculator avidCalculator, IHexGridCalculator hexGridCalculator, IHexVectorUtility hexVectorUtility, IFiringSolutionCalculator firingSolutionCalculator, IShellstarBuilder shellstarBuilder, IRangeAltitudeTable rangeAltitudeTable, IShotGeometryTable shotGeometryTable, IMissilePositionAdjustmentTable missilePositionAdjustmentTable, IProjectileDamageTable projectileDamageTable) { _avidCalculator = avidCalculator; _hexGridCalculator = hexGridCalculator; _hexVectorUtility = hexVectorUtility; _firingSolutionCalculator = firingSolutionCalculator; _shellstarBuilder = shellstarBuilder; _rangeAltitudeTable = rangeAltitudeTable; _shotGeometryTable = shotGeometryTable; _missilePositionAdjustmentTable = missilePositionAdjustmentTable; _projectileDamageTable = projectileDamageTable; }
public LaunchBoardModel(IUnitModel launchingUnit, IUnitModel targetUnit, ICurrentTurnModel currentTurn) { if (launchingUnit == null) { throw new ArgumentNullException("launchingUnit"); } if (targetUnit == null) { throw new ArgumentNullException("targetUnit"); } _avidCalculator = ServiceFactory.Library.AvidCalculator; _hexGridCalculator = ServiceFactory.Library.HexGridCalculator; _hexVectorUtility = ServiceFactory.Library.HexVectorUtility; _firingSolutionCalculator = ServiceFactory.Library.FiringSolutionCalculator; _shellstarBuilder = ServiceFactory.Library.ShellstarBuilder; _weaponSelectionModel = new WeaponSelectionModel(); _launchingUnit = launchingUnit; _targetUnit = targetUnit; _currentTurn = currentTurn; }