Changeset 10621 for code/branches/presentationFS15merge
- Timestamp:
- Oct 4, 2015, 3:30:38 PM (9 years ago)
- Location:
- code/branches/presentationFS15merge/src/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS15merge/src/modules/towerdefense/TowerDefense.cc
r10615 r10621 431 431 int helpnumber = 40 -(waves_); 432 432 if(helpnumber <= 0) {helpnumber =1;} 433 float numSpaceships = std::abs((rand() % 100)*5 *(helpnumber));434 float numEggs = std::abs((rand() % 100)*1 *(waves_));435 float numUfos = std::abs((rand() % 100)*1.5 *(0.5*(waves_))) ;436 437 float totalnumber = (numSpaceships + numEggs + numUfos)*1.3 ;433 float numSpaceships = std::abs((rand() % 100)*5.0f*(helpnumber)); 434 float numEggs = std::abs((rand() % 100)*1.0f*(waves_)); 435 float numUfos = std::abs((rand() % 100)*1.5f*(0.5f*(waves_))) ; 436 437 float totalnumber = (numSpaceships + numEggs + numUfos)*1.3f; 438 438 439 439 int newspaceships = (int)(maxspaceships* numSpaceships / totalnumber); -
code/branches/presentationFS15merge/src/modules/towerdefense/TowerDefenseTower.cc
r10615 r10621 67 67 float reloadrate = getReloadRate(); 68 68 float reloadwaittime = getReloadWaitTime(); 69 this->setDamageMultiplier((upgrade+1)*1.5 );69 this->setDamageMultiplier((upgrade+1)*1.5f); 70 70 this->setRotationThrust(2*this->getRotationThrust()); 71 71 reloadrate = 0.7f*reloadrate; -
code/branches/presentationFS15merge/src/modules/weapons/projectiles/GravityBombField.cc
r10619 r10621 64 64 //Let the Bomb Modell in the centre rotate in a random direction. 65 65 Vector3 randomRotation; 66 srand(time(NULL)); 67 randomRotation.x = rand(); 68 randomRotation.y = rand(); 69 randomRotation.y = rand(); 66 randomRotation.x = rnd(); 67 randomRotation.y = rnd(); 68 randomRotation.y = rnd(); 70 69 randomRotation.normalise(); 71 70 bombModel_->setAngularAcceleration(randomRotation*(PEAK_ANGULAR_VELOCITY/FORCE_FIELD_LIFETIME)); … … 114 113 explosionCross_ = new ParticleEmitter(this->getContext()); 115 114 explosionCross_->setSource("Orxonox/FieldExplosion"); 116 explosionCross_->setOrientation(r and(), rand(), rand(), rand());115 explosionCross_->setOrientation(rnd(), rnd(), rnd(), rnd()); 117 116 explosionCross_->setScale(0.7); 118 117 this->attach(explosionCross_);
Note: See TracChangeset
for help on using the changeset viewer.