Beispiel #1
0
 public static Index.STATE GetTransportPollutingState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting.GetIndexState();
Beispiel #2
0
 public static float GetTransportSectorInvestmentValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Investment.Value;
Beispiel #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);
Beispiel #4
0
 public static float GetTransportPollutingValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting.Value;
Beispiel #5
0
 public static float GetIndustrySectorDevelopmentValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].IndustrySector.Development.Value;
Beispiel #6
0
    //////////////////////
    /// Public Methods ///
    //////////////////////

    public int GetFreeSpaces(Transport.TYPE type) => freeSpaces[(int)type];
Beispiel #7
0
 public static Transport.ENHANCEMENTS GetTransportEnhancements(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetEnhancements();
Beispiel #8
0
 public static Index.STATE GetTransportSectorTechnologyState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Technology.GetIndexState();
Beispiel #9
0
 public static float GetTransportBaseSpeed(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetBaseSpeed();
Beispiel #10
0
 public static Transport.EXPANSION GetTransportExpansions(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].GetExpansionState();
Beispiel #11
0
 ///////////////////////
 // Transport Getters //
 ///////////////////////
 public static int GetTransportCapacity(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Capacity;
Beispiel #12
0
 public static Index.STATE GetLeisureSectorFunState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].LeisureSector.Fun.GetIndexState();
Beispiel #13
0
 public static float GetLeisureSectorFunValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].LeisureSector.Fun.Value;
Beispiel #14
0
 public static Index.STATE GetTransportSectorInvestmentState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Investment.GetIndexState();
Beispiel #15
0
 public static float GetTransportSpeedIndexValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].SpeedIndex.Value;
Beispiel #16
0
 public static float GetTransportSectorTechnologyValue(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.Technology.Value;
Beispiel #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);
Beispiel #18
0
 public static int GetTransportSectorFreeSpaces(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].TransportSector.GetFreeSpaces(transportType);
Beispiel #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);
Beispiel #20
0
 public static Index.STATE GetIndustrySectorDevelopmentState(CityPart.PLACE cityPlace, Transport.TYPE transportType)
 => City.CityParts[(int)cityPlace].IndustrySector.Development.GetIndexState();
Beispiel #21
0
 public TransportPlan(Transport.TYPE transport, float safety, int time)
 {
     Transport = transport; Safety = safety; TimeRequiered = time;
 }