00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _METEORMGR_HPP_
00021 #define _METEORMGR_HPP_
00022
00023 #include <vector>
00024 #include "StelModule.hpp"
00025
00026 class Meteor;
00027
00030 class MeteorMgr : public StelModule
00031 {
00032 Q_OBJECT
00033
00034 public:
00039 MeteorMgr(int zhr, int maxv);
00040 virtual ~MeteorMgr();
00041
00043
00045 virtual void init();
00046
00048 virtual void draw(StelCore* core);
00049
00054 virtual void update(double deltaTime);
00055
00057 virtual double getCallOrder(StelModuleActionName actionName) const;
00058
00059 public slots:
00061
00063 int getZHR(void);
00065 void setZHR(int zhr);
00066
00068 void setFlagShow(bool b) { flagShow = b; }
00070 bool getFlagShow(void) const { return flagShow; }
00071
00073 void setMaxVelocity(int maxv);
00074
00075 private:
00076 std::vector<Meteor*> active;
00077 int ZHR;
00078 int maxVelocity;
00079 double zhrToWsr;
00080 bool flagShow;
00081 };
00082
00083
00084 #endif // _METEORMGR_HPP_