Пример #1
0
 public ProductionProjectFactory(
     IBuildingFactory buildingFactory, IUnitFactory unitFactory,
     IPossessionRelationship <ICivilization, ICity> cityPossessionCanon,
     IPossessionRelationship <IHexCell, ICity> cityLocationCanon,
     IStartingExperienceLogic startingExperienceLogic,
     ILocalPromotionLogic localPromotionLogic
     )
 {
     BuildingFactory         = buildingFactory;
     UnitFactory             = unitFactory;
     CityPossessionCanon     = cityPossessionCanon;
     CityLocationCanon       = cityLocationCanon;
     StartingExperienceLogic = startingExperienceLogic;
     LocalPromotionLogic     = localPromotionLogic;
 }
Пример #2
0
        public ProductionProject(
            IUnitTemplate unitToConstruct, IUnitFactory unitFactory,
            IPossessionRelationship <ICivilization, ICity> cityPossessionCanon,
            IPossessionRelationship <IHexCell, ICity> cityLocationCanon,
            IStartingExperienceLogic startingExperienceLogic,
            ILocalPromotionLogic localPromotionLogic
            )
        {
            if (unitToConstruct == null)
            {
                throw new ArgumentNullException("unitToConstruct");
            }

            UnitToConstruct         = unitToConstruct;
            UnitFactory             = unitFactory;
            CityPossessionCanon     = cityPossessionCanon;
            CityLocationCanon       = cityLocationCanon;
            StartingExperienceLogic = startingExperienceLogic;
            LocalPromotionLogic     = localPromotionLogic;
        }