X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Fprecipitation_mgr.hxx;h=69a0ecfaa223d237379229cdf79b13473c6dfabe;hb=ae50c054a9007b98f1a8dafe6d589d0b4cab8873;hp=2d2457976bff202b7cbc6d362fe3ed5dd22f0a79;hpb=eb26cb35905cb1894cb0346700826cff512e437e;p=flightgear.git diff --git a/src/Environment/precipitation_mgr.hxx b/src/Environment/precipitation_mgr.hxx index 2d2457976..69a0ecfaa 100644 --- a/src/Environment/precipitation_mgr.hxx +++ b/src/Environment/precipitation_mgr.hxx @@ -24,31 +24,35 @@ * 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 "precipitation_mgr.hxx" - -class FGPrecipitationMgr { +class FGPrecipitationMgr : public SGSubsystem +{ private: - osg::Group *group; - osg::MatrixTransform *transform; - SGPrecipitation *precipitation; - float getPrecipitationAtAltitudeMax(void); - + osg::ref_ptr group; + osg::ref_ptr transform; + osg::ref_ptr precipitation; + float getPrecipitationAtAltitudeMax(void); public: - FGPrecipitationMgr(); - ~FGPrecipitationMgr(); - bool update(void); - osg::Group * getObject(void); + FGPrecipitationMgr(); + virtual ~FGPrecipitationMgr(); + + // SGSubsystem methods + virtual void init (); + virtual void update (double dt); + + void setPrecipitationLevel(double l); + + osg::Group * getObject(void); + }; #endif