![]() |
Stellarium 0.11.4 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Models a single meteor. More...
#include <Meteor.hpp>
Public Member Functions | |
| Meteor (const StelCore *, double v) | |
| Create a Meteor object. | |
| bool | update (double deltaTime) |
| Updates the position of the meteor, and expires it if necessary. | |
| void | draw (const StelCore *core, StelPainter &sPainter) |
| Draws the meteor. | |
| bool | isAlive (void) |
| Determine if a meteor is alive or has burned out. | |
Models a single meteor.
Control of the meteor rate is performed in the MeteorMgr class. Once created, a meteor object only lasts for some amount of time, and then "dies", after which, the update() member returns false. The live/dead status of a meteor may also be determined using the isAlive member.
| Meteor::Meteor | ( | const StelCore * | , | |
| double | v | |||
| ) |
Create a Meteor object.
| v | the velocity of the meteor in km/s. |
| void Meteor::draw | ( | const StelCore * | core, | |
| StelPainter & | sPainter | |||
| ) |
Draws the meteor.
| bool Meteor::isAlive | ( | void | ) |
Determine if a meteor is alive or has burned out.
| bool Meteor::update | ( | double | deltaTime | ) |
Updates the position of the meteor, and expires it if necessary.
1.6.3