Changeset 10511 in orxonox.OLD for trunk/src/world_entities/weather_effects
- Timestamp:
- Jan 30, 2007, 7:39:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weather_effects/lightning_effect.cc
r10415 r10511 107 107 this->thunderBolt[i] = new Billboard(NULL); 108 108 this->thunderBolt[i]->setSize(this->width, this->height); 109 this->thunderBolt[i]->setVisibili y(false);109 this->thunderBolt[i]->setVisibility(false); 110 110 } 111 111 … … 176 176 int i; 177 177 for (i = 0; i < 4; i++) 178 this->thunderBolt[i]->setVisibili y(false);178 this->thunderBolt[i]->setVisibility(false); 179 179 180 180 } … … 197 197 198 198 // Start a flash & lightning cycle 199 this->thunderBolt[0]->setVisibili y(true);199 this->thunderBolt[0]->setVisibility(true); 200 200 201 201 // Lighten up environment … … 209 209 210 210 if( this->thunderBolt[0]->isVisible() && this->time > this->flashRisingTime*1/3 ) { 211 this->thunderBolt[0]->setVisibili y(false);212 this->thunderBolt[1]->setVisibili y(true);211 this->thunderBolt[0]->setVisibility(false); 212 this->thunderBolt[1]->setVisibility(true); 213 213 } else if( this->thunderBolt[1]->isVisible() && this->time > this->flashRisingTime*2/3 ) { 214 this->thunderBolt[1]->setVisibili y(false);215 this->thunderBolt[2]->setVisibili y(true);214 this->thunderBolt[1]->setVisibility(false); 215 this->thunderBolt[2]->setVisibility(true); 216 216 217 217 } else if( this->thunderBolt[2]->isVisible() && this->time > this->flashRisingTime) { 218 this->thunderBolt[2]->setVisibili y(false);219 this->thunderBolt[3]->setVisibili y(true);218 this->thunderBolt[2]->setVisibility(false); 219 this->thunderBolt[3]->setVisibility(true); 220 220 } 221 221 222 222 if( this->thunderBolt[3]->isVisible() && this->time > this->flashHoldTime) { 223 this->thunderBolt[3]->setVisibili y(false);223 this->thunderBolt[3]->setVisibility(false); 224 224 225 225 this->time = 0.0f;
Note: See TracChangeset
for help on using the changeset viewer.