5 #include "ParsedNavGraph.h"
6 #include "TrainVehicle.h"
16 namespace FunctionalRoadClassFilterType
31 std::vector<Resources::Roads::FunctionalRoadClass::Type> FilterList;
32 FunctionalRoadClassFilterType::Values FilterType;
35 static const char* FunctionalRoadClassFilterTypeStrings[];
37 bool CanUseFunctionalRoadClass(Resources::Roads::FunctionalRoadClass::Type roadClass)
const
39 if(FilterType == FunctionalRoadClassFilterType::None)
44 std::vector<Resources::Roads::FunctionalRoadClass::Type>::const_iterator iterator = std::find(FilterList.begin(), FilterList.end(), roadClass);
45 if( (FilterType == FunctionalRoadClassFilterType::Exclusive && iterator == FilterList.end()) ||
46 (FilterType == FunctionalRoadClassFilterType::Inclusive && iterator != FilterList.end()) )
60 , ModelNode(modelNode)
61 , EngineNodeLength(Eegeo::Traffic::TRAIN_CARRIAGE_SEPARATION)
63 , CarriageNodeLength(Eegeo::Traffic::TRAIN_CARRIAGE_SEPARATION)
65 , TailNodeLength(Eegeo::Traffic::TRAIN_CARRIAGE_SEPARATION)
70 , SpawnWeighting(1.0f)
76 std::string ModelNode;
77 float EngineNodeLength;
78 std::string CarriageNode;
79 float CarriageNodeLength;
105 : DrivesOnRight(
true)
106 , MinimumDistanceBetweenSpawns(0)
107 , SpawnChancePerCell(1)
113 std::string VehiclesBasePodFile;
114 std::vector<TrafficSimulationVehicleConfiguration> Vehicles;
116 float MinimumDistanceBetweenSpawns;
117 float SpawnChancePerCell;