Changeset 10539 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 31, 2007, 4:27:32 AM (18 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/acid_launcher.cc
r10516 r10539 124 124 void AcidLauncher::tick(float dt) 125 125 { 126 if (!Weapon::tickW(dt)) 127 return; 126 128 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 127 129 { … … 130 132 } 131 133 132 if (!Weapon::tickW(dt)) 133 return; 134 134 135 /* 135 136 Quaternion quat; -
trunk/src/world_entities/weapons/heavy_blaster.cc
r10516 r10539 272 272 void HeavyBlaster::tick(float dt) 273 273 { 274 if (!Weapon::tickW(dt)) 275 return; 274 276 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 275 277 { -
trunk/src/world_entities/weapons/light_blaster.cc
r10533 r10539 179 179 void LightBlaster::tick(float dt) 180 180 { 181 if (!Weapon::tickW(dt)) 182 return; 181 183 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 182 184 { -
trunk/src/world_entities/weapons/medium_blaster.cc
r10516 r10539 178 178 void MediumBlaster::tick(float dt) 179 179 { 180 if (!Weapon::tickW(dt)) 181 return; 180 182 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 181 183 { -
trunk/src/world_entities/weapons/swarm_launcher.cc
r10533 r10539 22 22 23 23 #include "model.h" 24 #include "world_entities/npcs/npc.h" 24 25 25 26 #include "state.h" … … 157 158 PRINTF(0)("fire\n"); 158 159 Projectile* pj = NULL; 159 for( ObjectList< Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)160 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) 160 161 { 161 if( ((*eIterator)->getOMListNumber() != (this->getOMListNumber() -1)) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 300)162 if( ((*eIterator)->getOMListNumber() != (this->getOMListNumber())) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 300) 162 163 { 163 164 pj = this->getProjectile(); … … 172 173 pj->setAbsDir(this->getAbsDir()); 173 174 dynamic_cast<SwarmProjectile*>(pj)->setTarget( (PNode*)(*eIterator) ); 174 //pj->toList(OM_GROUP_01_PROJ);175 175 pj->activate(); 176 176 } -
trunk/src/world_entities/weapons/weapon_manager.cc
r10528 r10539 442 442 { 443 443 if( firingWeapon->getCurrentState() == WS_SHOOTING) continue; 444 445 444 firingWeapon->requestAction(WA_SHOOT); 446 445 } … … 454 453 455 454 /** 456 * triggers fire of all weapons in the current weaponconfig455 * triggers release fire of all weapons in the current weaponconfig 457 456 */ 458 457 void WeaponManager::releaseFire()
Note: See TracChangeset
for help on using the changeset viewer.