protected StaticZoneClusterConsumption(
     Func <ZoneInfoFinder> createZoneInfoFinderFunc,
     IElectricityBehaviour electricityBehaviour,
     int pollutionInUnits,
     Color color,
     int widthInZones,
     int heightInZones)
     : base(createZoneInfoFinderFunc, electricityBehaviour, color, widthInZones, heightInZones)
 {
     PollutionBehaviour = new DynamicPollutionBehaviour(() => pollutionInUnits);
 }
예제 #2
0
 protected BaseImplementedZoneClusterConsumption(
     Func <ZoneInfoFinder> createZoneInfoFinderFunc,
     IElectricityBehaviour electricityBehaviour,
     Color color,
     int widthInZones,
     int heightInZones)
     : base(electricityBehaviour)
 {
     _zoneClusterMembers = ZoneClusterMemberConsumption
                           .Generate(this, createZoneInfoFinderFunc, widthInZones, heightInZones, color)
                           .ToList();
 }
예제 #3
0
 protected BaseZoneClusterConsumption(IElectricityBehaviour electricityBehaviour)
 {
     ElectricityBehaviour = electricityBehaviour;
 }
예제 #4
0
 internal SeaPortZoneClusterConsumption(Func <ZoneInfoFinder> createZoneInfoFinderFunc, IElectricityBehaviour electricityBehaviour)
     : base(
         createZoneInfoFinderFunc: createZoneInfoFinderFunc,
         electricityBehaviour: electricityBehaviour,
         pollutionInUnits: 90,
         color: Color.Navy,
         widthInZones: 4,
         heightInZones: 4
         )
 {
 }