Example #1
0
 public static Index.STATE GetTransportPollutingState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting.GetIndexState();
Example #2
0
 public static float GetTransportSectorInvestmentValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Investment.Value;
Example #3
0
 public static void AddTransportPollutingIndexChange(CityPart.PLACE cityPlace, Transport.TYPE transportType, Index.CHANGE change)
 => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting, change);
Example #4
0
 public static float GetTransportPollutingValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting.Value;
Example #5
0
 public static float GetIndustrySectorDevelopmentValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].IndustrySector.Development.Value;
Example #6
0
    //////////////////////
    /// Public Methods ///
    //////////////////////

    public int GetFreeSpaces(Transport.TYPE type) => freeSpaces[(int)type];
Example #7
0
 public static Transport.ENHANCEMENTS GetTransportEnhancements(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetEnhancements();
Example #8
0
 public static Index.STATE GetTransportSectorTechnologyState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Technology.GetIndexState();
Example #9
0
 public static float GetTransportBaseSpeed(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetBaseSpeed();
Example #10
0
 public static Transport.EXPANSION GetTransportExpansions(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetExpansionState();
Example #11
0
 ///////////////////////
 // Transport Getters //
 ///////////////////////
 public static int GetTransportCapacity(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Capacity;
Example #12
0
 public static Index.STATE GetLeisureSectorFunState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].LeisureSector.Fun.GetIndexState();
Example #13
0
 public static float GetLeisureSectorFunValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].LeisureSector.Fun.Value;
Example #14
0
 public static Index.STATE GetTransportSectorInvestmentState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Investment.GetIndexState();
Example #15
0
 public static float GetTransportSpeedIndexValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].SpeedIndex.Value;
Example #16
0
 public static float GetTransportSectorTechnologyValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Technology.Value;
Example #17
0
    ///////////////////////
    // Transport Changes //
    ///////////////////////

    public static void AddTransportExpansionsChange(CityPart.PLACE cityPlace, Transport.TYPE transportType, Transport.EXPANSION newValue)
    => City.Changes.AddValueChange(City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].SetExpansionState, newValue);
Example #18
0
 public static int GetTransportSectorFreeSpaces(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.GetFreeSpaces(transportType);
Example #19
0
 public static void AddTransportEnhancementsChange(CityPart.PLACE cityPlace, Transport.TYPE transportType, Transport.ENHANCEMENTS newValue)
 => City.Changes.AddValueChange(City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].SetEnhancements, newValue);
Example #20
0
 public static Index.STATE GetIndustrySectorDevelopmentState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].IndustrySector.Development.GetIndexState();
Example #21
0
 public TransportPlan(Transport.TYPE transport, float safety, int time)
 {
     Transport = transport; Safety = safety; TimeRequiered = time;
 }