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 Q_PROPERTY(int ZHR READ getZHR WRITE setZHR NOTIFY zhrChanged)
00034
00035 public:
00040 MeteorMgr(int zhr, int maxv);
00041 virtual ~MeteorMgr();
00042
00044
00046 virtual void init();
00047
00049 virtual void draw(StelCore* core);
00050
00055 virtual void update(double deltaTime);
00056
00058 virtual double getCallOrder(StelModuleActionName actionName) const;
00059
00060 public slots:
00062
00064 int getZHR(void);
00066 void setZHR(int zhr);
00067
00069 void setFlagShow(bool b) { flagShow = b; }
00071 bool getFlagShow(void) const { return flagShow; }
00072
00074 void setMaxVelocity(int maxv);
00075
00076 signals:
00077 void zhrChanged(int);
00078
00079 private:
00080 std::vector<Meteor*> active;
00081 int ZHR;
00082 int maxVelocity;
00083 double zhrToWsr;
00084 bool flagShow;
00085 };
00086
00087
00088 #endif // _METEORMGR_HPP_