3
* This file Copyright (C) 2004 Robert Spearman
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
#ifndef _METEOR_MGR_H_
21
#define _METEOR_MGR_H_
24
#include "StelModule.hpp"
28
class MeteorMgr : public StelModule
32
MeteorMgr(int zhr, int maxv ); // base_zhr is zenith hourly rate sans meteor shower
35
///////////////////////////////////////////////////////////////////////////
36
// Methods defined in the StelModule class
37
virtual void init(const InitParser& conf, LoadingBar& lb);
38
virtual string getModuleID() const {return "meteors";}
39
virtual double draw(Projector *prj, const Navigator *nav, ToneReproducer *eye);
40
virtual void update(double deltaTime);
42
void setZHR(int zhr); // set zenith hourly rate
44
void set_max_velocity(int maxv); // set maximum meteoroid velocity km/s
47
vector<Meteor*> active; // Vector containing all active meteors
50
double zhr_to_wsr; // factor to convert from zhr to whole earth per second rate
54
#endif // _METEOR_MGR_H