Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 6:41:58 PM (18 years ago)
Author:
amaechler
Message:

branches/atmosphere_engine: cosmetics2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h

    r7646 r7652  
    11/**
    2  * @file rain_effect.h
    3  */
     2* @file rain_effect.h
     3*/
    44
    55#ifndef _RAIN_EFFECT
     
    2222class RainEffect : public WeatherEffect
    2323{
    24   public:
    25     RainEffect(const TiXmlElement* root = NULL);
    26     virtual ~RainEffect();
     24        public:
     25                RainEffect(const TiXmlElement* root = NULL);
     26                virtual ~RainEffect();
    2727
    28     virtual void loadParams(const TiXmlElement* root);
     28                virtual void loadParams(const TiXmlElement* root);
    2929
    30     virtual bool init();
     30                virtual bool init();
    3131
    32     virtual bool activate();
    33     virtual bool deactivate();
     32                virtual bool activate();
     33                virtual bool deactivate();
    3434
    35     virtual void tick(float dt);
     35                virtual void tick(float dt);
    3636
    37     inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); }
    38     inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); }
    39     inline void setRainRate(float rate) { this->rainRate = rate;}
    40     inline void setRainVelocity(float velocity) { this->rainVelocity = -velocity; }
     37                inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); }
     38                inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); }
     39                inline void setRainRate(float rate) { this->rainRate = rate;}
     40                inline void setRainVelocity(float velocity) { this->rainVelocity = -velocity; }
     41                inline void setRainLife(float life) { this->rainLife = life; }
     42                inline void setMoveRain() { PRINTF(0)( "setting move true\n"); this->rainMove = true; }
    4143
    42   private:
    43     static SparkParticles*            rainParticles;
    44     ParticleEmitter*                  emitter;
    4544
    46     Vector                            rainCoord;
    47     Vector2D                          rainSize;
    48     GLfloat                           rainRate;
    49     GLfloat                           rainVelocity;
     45        private:
     46                static SparkParticles*                                          rainParticles;
     47                ParticleEmitter*                                                                        emitter;
    5048
    51     SoundSource                       soundSource;
    52     SoundBuffer*                      rainBuffer;
     49                Vector                                                                                                          rainCoord;
     50                Vector2D                                                                                                        rainSize;
     51                GLfloat                                                                                                         rainRate;
     52                GLfloat                                                                                                         rainVelocity;
     53                GLfloat                                                                                                         rainLife;
     54                bool                                                                                                                    rainMove;
     55
     56                SoundSource                                                                                             soundSource;
     57                SoundBuffer*                                                                                    rainBuffer;
    5358};
    5459
Note: See TracChangeset for help on using the changeset viewer.