Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Public Member Functions

MeteorMgr Class Reference

Simulates meteor showers. More...

#include <MeteorMgr.hpp>

List of all members.

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

Detailed Description

Simulates meteor showers.


Constructor & Destructor Documentation

MeteorMgr::MeteorMgr ( int  zhr,
int  maxv 
)

Construct a MeteorMgr object.

Parameters:
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.

Member Function Documentation

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.