![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Simulates meteor showers. More...
#include <MeteorMgr.hpp>
Public Slots | |
int | getZHR (void) |
void | setZHR (int zhr) |
void | setFlagShow (bool b) |
bool | getFlagShow (void) const |
void | setMaxVelocity (int maxv) |
Public Member Functions | |
MeteorMgr (int zhr, int maxv) | |
virtual void | init () |
virtual void | draw (StelCore *core) |
virtual void | update (double deltaTime) |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Simulates meteor showers.
MeteorMgr::MeteorMgr | ( | int | zhr, | |
int | maxv | |||
) |
Construct a MeteorMgr object.
zhr | the base zenith hourly rate - i.e. the rate when there is no meteor shower in progress. | |
maxv | the initial value of the maximum meteor velocity. |
virtual void MeteorMgr::update | ( | double | deltaTime | ) | [virtual] |
Update time-dependent parts of the module.
This function adds new meteors to the list of currently visiable ones based on the current rate, and removes those which have run their course.
Implements StelModule.