~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to src/modules/Meteor.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2009-03-13 20:07:22 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090313200722-l66s4zy2s3e8up0s
Tags: 0.10.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef _METEOR_HPP_
21
21
#define _METEOR_HPP_
22
22
 
23
 
#include "Projector.hpp"
24
 
#include "Navigator.hpp"
25
 
#include "ToneReproducer.hpp"
 
23
#include "VecMath.hpp"
 
24
class StelCore;
 
25
class StelPainter;
26
26
 
27
27
// all in km - altitudes make up meteor range
28
28
#define EARTH_RADIUS 6369.f
40
40
{
41
41
public:
42
42
        //! Create a Meteor object.
43
 
        //! @param proj the Projector.
44
 
        //! @param nav the Navigator.
45
 
        //! @param eye the ToneProducer object.
46
43
        //! @param v the velocity of the meteor in km/s.
47
 
        Meteor( Projector *proj, Navigator *nav, ToneReproducer* eye, double v);
 
44
        Meteor(const StelCore*, double v);
48
45
        virtual ~Meteor();
49
46
        
50
47
        //! Updates the position of the meteor, and expires it if necessary.
52
49
        bool update(double deltaTime);
53
50
        
54
51
        //! Draws the meteor.
55
 
        bool draw(Projector *proj, const Navigator* nav);
 
52
        bool draw(const StelCore* core, const StelPainter& sPainter);
56
53
        
57
54
        //! Determine if a meteor is alive or has burned out.
58
55
        //! @return true if alive, else false.