Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

Meteor Class Reference

Models a single meteor. More...

#include <Meteor.hpp>

List of all members.

Public Member Functions

 Meteor (const StelCore *, double v)
bool update (double deltaTime)
void draw (const StelCore *core, StelPainter &sPainter)
bool isAlive (void)

Detailed Description

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.

Constructor & Destructor Documentation

Meteor::Meteor ( const StelCore ,
double  v 

Create a Meteor object.

v the velocity of the meteor in km/s.

Member Function Documentation

bool Meteor::update ( double  deltaTime  ) 

Updates the position of the meteor, and expires it if necessary.

true of the meteor is still alive, else false.

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.

true if alive, else false.

Generated on Mon Mar 22 09:55:38 2010 for Stellarium by  doxygen 1.5.5