Exemplo n.º 1
0
 //---------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Конструктор по умолчанию инициализирует объект класса предустановленными значениями
 /// </summary>
 //---------------------------------------------------------------------------------------------------------
 public CVillage()
     : base()
 {
     //mZones = new CLand(TLandCategory.LandsOfSettlements);
     mSpecialInfrastructure = new CSpecialInfrastructure();
     mRoads      = new CRoadInfrastructure(TRoadPlaceType.Inside);
     mRoads.Name = "Внтрипослековые дороги";
     mHousing    = new CHousingInfrastructure();
     mSocial     = new CSocialInfrastructure();
 }
Exemplo n.º 2
0
            //---------------------------------------------------------------------------------------------------------
            /// <summary>
            /// Объединение данных
            /// </summary>
            /// <param name="housing_infrastructure">Жилищная инфраструктура</param>
            //---------------------------------------------------------------------------------------------------------
            public void Union(CHousingInfrastructure housing_infrastructure)
            {
                mCountUnion++;

                for (Int32 i = 0; i < housing_infrastructure.HouseElements.Count; i++)
                {
                    mHouseElements.Add(housing_infrastructure.HouseElements[i]);
                }

                mProvidingWater += housing_infrastructure.ProvidingWater;
                mProvidingSewer += housing_infrastructure.ProvidingSewer;
                mProvidingGas   += housing_infrastructure.ProvidingGas;
                mProvidingWarm  += housing_infrastructure.ProvidingWarm;
            }
Exemplo n.º 3
0
 //-------------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Обновление связей
 /// </summary>
 /// <param name="parent">Родительский объект</param>
 //-------------------------------------------------------------------------------------------------------------
 public override void OnUpdateLink(CUrbanPlanningItem parent)
 {
     mHousingInfra = parent as CHousingInfrastructure;
 }