X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Fprecipitation_mgr.hxx;h=449f7f47c332a60bdc6c6a63e75d854c8550da08;hb=9d067bc89023c5127b263603316dcbda71182aeb;hp=2d2457976bff202b7cbc6d362fe3ed5dd22f0a79;hpb=eb26cb35905cb1894cb0346700826cff512e437e;p=flightgear.git diff --git a/src/Environment/precipitation_mgr.hxx b/src/Environment/precipitation_mgr.hxx index 2d2457976..449f7f47c 100644 --- a/src/Environment/precipitation_mgr.hxx +++ b/src/Environment/precipitation_mgr.hxx @@ -24,31 +24,38 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * @par CVS - * $Id$ */ #ifndef _PRECIPITATION_MGR_HXX #define _PRECIPITATION_MGR_HXX +#include #include +#include -#include "precipitation_mgr.hxx" +class FGPrecipitationMgr : public SGSubsystem +{ +private: + osg::ref_ptr group; + osg::ref_ptr transform; + osg::ref_ptr precipitation; + float getPrecipitationAtAltitudeMax(void); + simgear::TiedPropertyList _tiedProperties; +public: + FGPrecipitationMgr(); + virtual ~FGPrecipitationMgr(); -class FGPrecipitationMgr { -private: - osg::Group *group; - osg::MatrixTransform *transform; - SGPrecipitation *precipitation; - float getPrecipitationAtAltitudeMax(void); + // SGSubsystem methods + virtual void bind (); + virtual void unbind (); + virtual void init (); + virtual void update (double dt); + + void setPrecipitationLevel(double l); + osg::Group * getObject(void); -public: - FGPrecipitationMgr(); - ~FGPrecipitationMgr(); - bool update(void); - osg::Group * getObject(void); }; #endif