Changeset 8251 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h
- Timestamp:
- Jun 8, 2006, 3:15:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h
r8223 r8251 16 16 17 17 class Billboard; 18 class Light; 18 19 19 20 class LighteningEffect : public WeatherEffect … … 34 35 35 36 void coord(float x, float y, float z); 37 void setFlashSize(float width, float height, float seedWidth, float seedHeight); 36 38 37 39 inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;} … … 39 41 inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; } 40 42 inline void setFlashRisingTime(float flashRisingTime) { if(flashRisingTime > this->flashConstTime) 41 this->flashRisingTime = this->flashConstTime/2; 42 else 43 this->flashRisingTime = flashRisingTime; } 44 inline void setFlashSize(float width, float height) { this->width = width; 45 this->height = height; } 43 this->flashRisingTime = this->flashConstTime/2; 44 else 45 this->flashRisingTime = flashRisingTime; } 46 46 inline void setFlashSeed(float seedX, float seedZ, float seedTime) { this->seedX = seedX; 47 this->seedZ = seedZ;48 this->seedTime = seedTime; }47 this->seedZ = seedZ; 48 this->seedTime = seedTime; } 49 49 50 50 void activateLightening() { this->activate(); } … … 54 54 Billboard* billboard[4]; 55 55 bool lighteningActivate; 56 int lightening1;57 int lightening2;58 int lightening3;59 56 60 57 float flashFrequency; … … 67 64 float width; 68 65 float height; 66 float seedWidth; 67 float seedHeight; 69 68 70 69 float seedX; … … 76 75 float mainPosZ; 77 76 77 Light* flashLight; 78 78 79 //OrxSound::SoundSource soundSource; 79 80 //OrxSound::SoundBuffer* thunderBuffer;
Note: See TracChangeset
for help on using the changeset viewer.