Beispiel #1
0
        public UnitModel()
        {
            Position = new HexGridCoordinate();
            Vectors = RawHexVector.Zero;
            _attachedShellstars = new List<IShellstarModel>();

            _hexVectorUtility = ServiceFactory.Library.HexVectorUtility;
            _hexGridCalculator = ServiceFactory.Library.HexGridCalculator;
        }
Beispiel #2
0
        public UnitModel()
        {
            Position            = new HexGridCoordinate();
            Vectors             = RawHexVector.Zero;
            _attachedShellstars = new List <IShellstarModel>();

            _hexVectorUtility  = ServiceFactory.Library.HexVectorUtility;
            _hexGridCalculator = ServiceFactory.Library.HexGridCalculator;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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;
        }
        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;
        }