Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

branches/atmosphere_engine: cosmetics2

File:
1 edited

Legend:

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

    r7651 r7652  
    11/**
    2  * @file snow_effect.h
    3  */
     2* @file snow_effect.h
     3*/
    44
    55#ifndef _SNOW_EFFECT
     
    1919class SnowEffect : public WeatherEffect
    2020{
    21   public:
    22     SnowEffect(const TiXmlElement* root = NULL);
    23     virtual ~SnowEffect();
     21        public:
     22                SnowEffect(const TiXmlElement* root = NULL);
     23                virtual ~SnowEffect();
    2424
    25     virtual void loadParams(const TiXmlElement* root);
     25                virtual void loadParams(const TiXmlElement* root);
    2626
    27     virtual bool init();
     27                virtual bool init();
    2828
    29     virtual bool activate();
    30     virtual bool deactivate();
     29                virtual bool activate();
     30                virtual bool deactivate();
    3131
    32     virtual void draw() const;
    33     virtual void tick(float dt);
     32                virtual void draw() const;
     33                virtual void tick(float dt);
    3434
    35     void activateSnow();
    36     void deactivateSnow();
     35                void activateSnow();
     36                void deactivateSnow();
    3737
    38   private:
    39     void numParticles(int n) { this->particles = n; }
    40     void materialTexture(const std::string& texture) { this->texture = texture; }
    41     void lifeSpan(float lifeSpan, float randomLifeSpan) { this->life = lifeSpan; this->randomLife = randomLifeSpan; }
    42     void radius(float radius, float randomRadius) { this->snowRadius = radius; this->randomRadius = randomRadius; }
    43     void mass(float mass, float randomMass) { this->snowMass = mass; this->randomMass = randomMass; }
    44     void emissionRate(float emissionRate){ this->rate = emissionRate; }
    45     void emissionVelocity(float velocity, float randomVelocity){ this->velocity = velocity; this->randomVelocity = randomVelocity; }
    46     void spread(float angle, float randomAngle) { this->angle = angle; this->randomAngle = randomAngle; }
    47     void size(float sizeX, float sizeY) { this->snowSize = Vector2D(sizeX, sizeY); }
    48     void coord(float x, float y, float z) { this->snowCoord = Vector(x, y, z); }
     38        private:
     39                void numParticles(int n) { this->particles = n; }
     40                void materialTexture(const std::string& texture) { this->texture = texture; }
     41                void lifeSpan(float lifeSpan, float randomLifeSpan) { this->life = lifeSpan; this->randomLife = randomLifeSpan; }
     42                void radius(float radius, float randomRadius) { this->snowRadius = radius; this->randomRadius = randomRadius; }
     43                void mass(float mass, float randomMass) { this->snowMass = mass; this->randomMass = randomMass; }
     44                void emissionRate(float emissionRate){ this->rate = emissionRate; }
     45                void emissionVelocity(float velocity, float randomVelocity){ this->velocity = velocity; this->randomVelocity = randomVelocity; }
     46                void spread(float angle, float randomAngle) { this->angle = angle; this->randomAngle = randomAngle; }
     47                void size(float sizeX, float sizeY) { this->snowSize = Vector2D(sizeX, sizeY); }
     48                void coord(float x, float y, float z) { this->snowCoord = Vector(x, y, z); }
    4949
    50     int particles;
    51     std::string texture;
    52     float life, randomLife;
    53     float snowRadius, randomRadius;
    54     float snowMass, randomMass;
    55     float rate;
    56     float velocity, randomVelocity;
    57     float angle, randomAngle;
    58     float alpha;
    59     Vector snowCoord;
    60     Vector2D snowSize;
     50                int particles;
     51                std::string texture;
     52                float life, randomLife;
     53                float snowRadius, randomRadius;
     54                float snowMass, randomMass;
     55                float rate;
     56                float velocity, randomVelocity;
     57                float angle, randomAngle;
     58                float alpha;
     59                Vector snowCoord;
     60                Vector2D snowSize;
    6161
    62     bool activated;
     62                bool activated;
    6363
    64     static SpriteParticles* snowParticles;
     64                static SpriteParticles* snowParticles;
    6565
    66     PlaneEmitter*          emitter;
     66                PlaneEmitter*          emitter;
    6767};
    6868
Note: See TracChangeset for help on using the changeset viewer.