Ejemplo n.º 1
0
 public TrainStationZoneClusterConsumption(Func <ZoneInfoFinder> createZoneInfoFinderFunc)
     : base(
         createZoneInfoFinderFunc: createZoneInfoFinderFunc,
         electricityBehaviour: new ElectricityConsumerBehaviour(10),
         pollutionInUnits: 0,
         color: Color.Yellow,
         widthInZones: 2,
         heightInZones: 2)
 {
     CrimeBehaviour = new DynamicCrimeBehaviour(() => 10);
 }
 public AirportZoneClusterConsumption(Func <ZoneInfoFinder> createZoneInfoFinderFunc)
     : base(
         createZoneInfoFinderFunc: createZoneInfoFinderFunc,
         electricityBehaviour: new ElectricityConsumerBehaviour(30),
         pollutionInUnits: 70,
         color: Color.Tomato,
         widthInZones: 5,
         heightInZones: 6
         )
 {
     CrimeBehaviour = new DynamicCrimeBehaviour(() => 50);
 }
Ejemplo n.º 3
0
 public PoliceStationZoneClusterConsumption(
     Func <ZoneInfoFinder> createZoneInfoFinderFunc,
     Func <ICityServiceStrengthLevels> getCityServiceStrengthLevels)
     : base(
         createZoneInfoFinderFunc: createZoneInfoFinderFunc,
         electricityBehaviour: new ElectricityConsumerBehaviour(10),
         pollutionInUnits: 0,
         color: Color.Blue,
         widthInZones: 3,
         heightInZones: 3)
 {
     CrimeBehaviour = new DynamicCrimeBehaviour(() => Convert.ToInt32((HasPower ? -500 : -50) * getCityServiceStrengthLevels().PoliceStrength));
 }
 protected BaseGrowthZoneClusterConsumption(
     Func <ZoneInfoFinder> createZoneInfoFinderFunc,
     Color color)
     : base(
         createZoneInfoFinderFunc: createZoneInfoFinderFunc,
         electricityBehaviour: new ElectricityConsumerBehaviour(15),
         color: color,
         widthInZones: 3,
         heightInZones: 3
         )
 {
     PollutionBehaviour =
         new DynamicPollutionBehaviour(() => Convert.ToInt32(PopulationDensity * PopulationPollutionFactor));
     CrimeBehaviour      = new DynamicCrimeBehaviour(() => Convert.ToInt32(PopulationDensity * PopulationCrimeFactor));
     FireHazardBehaviour = new DynamicFireHazardBehaviour(() => Convert.ToInt32(PopulationDensity * PopulationCrimeFactor));
 }