X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Ffgclouds.hxx;h=8a956d74829c05b05c9f8ae973ce731bae7e8a18;hb=26e04d907266831c8117b4eba7ebc0289aab08a5;hp=9e8f7c92c77003aaddb61777e7d24cb36673e7a9;hpb=7b547acbf9586c0569a36864e6efe98c8b4c5bb0;p=flightgear.git diff --git a/src/Environment/fgclouds.hxx b/src/Environment/fgclouds.hxx index 9e8f7c92c..8a956d748 100644 --- a/src/Environment/fgclouds.hxx +++ b/src/Environment/fgclouds.hxx @@ -34,42 +34,28 @@ using std::string; -class SGNewCloud; +class SGSampleGroup; class SGCloudField; +class SGNewCloud; class FGMetar; -class FGEnvironmentCtrl; +//class FGEnvironmentCtrl; class FGClouds { private: -void buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_def_root, const string& name, sgVec3 pos, SGCloudField *layer); + double buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_def_root, const string& name, double grid_z_rand, SGCloudField *layer); void buildLayer(int iLayer, const string& name, double alt, double coverage); - void buildMETAR(void); - - void buildScenario( const string& scenario ); - - void setLayer( int iLayer, float alt_m, const string& coverage, const string& layer_type ); - - void update_metar_properties( const FGMetar *m ); - - void update_env_config (); + void buildCloudLayers(void); int update_event; SGSoundSample *snd_lightning; - FGEnvironmentCtrl * _controller; - float station_elevation_ft; bool clouds_3d_enabled; - bool rebuild_required; - string last_scenario; - SGPropertyNode *last_env_config, *last_env_clouds; public: - FGClouds(FGEnvironmentCtrl * controller); + FGClouds(); ~FGClouds(); - void build(void); - void init(void); int get_update_event(void) const;