Changeset 8020 in orxonox.OLD for branches/atmospheric_engine
- Timestamp:
- May 31, 2006, 12:32:34 PM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
r7978 r8020 58 58 } 59 59 60 this->activate(); 60 if(rainActivate) 61 this->activate(); 61 62 } 62 63 … … 82 83 LoadParam(root, "life", this, RainEffect, setRainLife); 83 84 LoadParam(root, "wind", this, RainEffect, setRainWind); 84 LoadParam(root, "option", this, RainEffect, setRainOption); 85 86 LOAD_PARAM_START_CYCLE(root, element); 87 { 88 LoadParam_CYCLE(element, "option", this, RainEffect, setRainOption); 89 } 90 LOAD_PARAM_END_CYCLE(element); 91 85 92 } 86 93 … … 89 96 { 90 97 //Default values 98 this->rainActivate = false; 99 this->rainMove = false; 91 100 this->rainCoord = Vector(500, 500, 500); 92 101 this->rainSize = Vector2D(1000, 1000); -
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
r7810 r8020 45 45 inline void setRainLife(float life) { this->rainLife = life; } 46 46 inline void setRainWind(int force) { this->rainWindForce = force; } 47 inline void setRainOption(const std::string& option) { if (option == "moverain") this->rainMove = true; } 47 inline void setRainOption(const std::string& option) { if (option == "moverain") this->rainMove = true; 48 if (option == "activate") this->rainActivate = true; } 48 49 49 50 … … 60 61 int rainWindForce; 61 62 bool rainMove; 63 bool rainActivate; 62 64 63 65 OrxSound::SoundSource soundSource;
Note: See TracChangeset
for help on using the changeset viewer.