]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/fgclouds.hxx
Oliver Schroeder:
[flightgear.git] / src / Environment / fgclouds.hxx
index dee821c1dea47ef911524c44760541bbe243c732..e5840fbe1af3169406bbbfdac51d2e7bd5e2dc88 100644 (file)
@@ -37,18 +37,19 @@ SG_USING_STD(string);
 class SGNewCloud;
 class SGCloudField;
 class FGMetar;
+class FGEnvironmentCtrl;
 
 class FGClouds {
 
 private:
-       SGNewCloud *buildCloud(SGPropertyNode *cloud_def_root, string name);
-       void buildLayer(SGCloudField *layer, string name, double alt, double coverage);
+       SGNewCloud *buildCloud(SGPropertyNode *cloud_def_root, const string& name);
+       void buildLayer(SGCloudField *layer, const string& name, double alt, double coverage);
 
        void buildMETAR(void);
 
-       void buildScenario( string scenario );
+       void buildScenario( const string& scenario );
 
-       void setLayer( int iLayer, float alt_m, string coverage, string layer_type );
+       void setLayer( int iLayer, float alt_m, const string& coverage, const string& layer_type );
 
        void update_metar_properties( FGMetar *m );
 
@@ -56,11 +57,13 @@ private:
 
        int update_event;
        SGSoundSample *snd_lightning;
-
+       FGEnvironmentCtrl * _controller;
        float station_elevation_ft;
+    string last_scenario;
+    SGPropertyNode *last_env_config, *last_env_clouds;
 
 public:
-       FGClouds();
+       FGClouds(FGEnvironmentCtrl * controller);
        ~FGClouds();
 
        void build(void);
@@ -72,4 +75,4 @@ public:
 
 };
 
-#endif // _FGCLOUDS_HXX
\ No newline at end of file
+#endif // _FGCLOUDS_HXX