Changeset 5929 for code/trunk/src/orxonox/weaponsystem
- Timestamp:
- Oct 12, 2009, 8:20:07 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core5 (added) merged: 5768-5769,5772,5775-5780,5783-5785,5791-5792,5795-5807,5809-5814,5816-5832,5836-5839,5842-5853,5855-5899,5904-5922,5924-5928
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/weaponsystem/Munition.cc
r5781 r5929 461 461 if (bUseReloadTime && (munition->reloadTime_ > 0 || munition->bStackMunition_)) 462 462 { 463 Executor Member<Magazine>* executor = createExecutor(createFunctor(&Magazine::loaded));463 Executor* executor = createExecutor(createFunctor(&Magazine::loaded, this)); 464 464 executor->setDefaultValues(munition); 465 465 466 this->loadTimer_.setTimer(munition->reloadTime_, false, this,executor);466 this->loadTimer_.setTimer(munition->reloadTime_, false, executor); 467 467 } 468 468 else -
code/trunk/src/orxonox/weaponsystem/Munition.h
r5781 r5929 47 47 48 48 unsigned int munition_; 49 Timer <Magazine>loadTimer_;49 Timer loadTimer_; 50 50 bool bLoaded_; 51 51 -
code/trunk/src/orxonox/weaponsystem/Weapon.cc
r5781 r5929 50 50 this->reloadingWeaponmode_ = WeaponSystem::WEAPON_MODE_UNASSIGNED; 51 51 52 this->reloadTimer_.setTimer(0.0f, false, this, createExecutor(createFunctor(&Weapon::reloaded)));52 this->reloadTimer_.setTimer(0.0f, false, createExecutor(createFunctor(&Weapon::reloaded, this))); 53 53 this->reloadTimer_.stopTimer(); 54 54 } … … 62 62 63 63 for (std::multimap<unsigned int, WeaponMode*>::iterator it = this->weaponmodes_.begin(); it != this->weaponmodes_.end(); ++it) 64 delete it->second;64 it->second->destroy(); 65 65 } 66 66 } -
code/trunk/src/orxonox/weaponsystem/Weapon.h
r5781 r5929 71 71 std::multimap<unsigned int, WeaponMode*> weaponmodes_; 72 72 73 Timer <Weapon>reloadTimer_;73 Timer reloadTimer_; 74 74 bool bReloading_; 75 75 unsigned int reloadingWeaponmode_; -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r5781 r5929 57 57 this->bParallelReload_ = true; 58 58 59 this->reloadTimer_.setTimer(0.0f, false, this, createExecutor(createFunctor(&WeaponMode::reloaded)));59 this->reloadTimer_.setTimer(0.0f, false, createExecutor(createFunctor(&WeaponMode::reloaded, this))); 60 60 this->reloadTimer_.stopTimer(); 61 61 -
code/trunk/src/orxonox/weaponsystem/WeaponMode.h
r5781 r5929 36 36 #include "util/Math.h" 37 37 #include "core/BaseObject.h" 38 #include "core/ Identifier.h"38 #include "core/SubclassIdentifier.h" 39 39 #include "tools/Timer.h" 40 40 … … 150 150 std::string munitionname_; 151 151 152 Timer <WeaponMode>reloadTimer_;152 Timer reloadTimer_; 153 153 bool bReloading_; 154 154 }; -
code/trunk/src/orxonox/weaponsystem/WeaponPack.cc
r5781 r5929 54 54 55 55 while (!this->weapons_.empty()) 56 delete (*this->weapons_.begin());56 (*this->weapons_.begin())->destroy(); 57 57 58 58 for (std::set<DefaultWeaponmodeLink*>::iterator it = this->links_.begin(); it != this->links_.end(); ) 59 delete (*(it++));59 (*(it++))->destroy(); 60 60 } 61 61 } -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.cc
r5781 r5929 46 46 this->weapon_ = 0; 47 47 48 this->set ObjectMode(0x0);48 this->setSyncMode(0x0); 49 49 } 50 50 -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r5781 r5929 62 62 63 63 while (!this->weaponSets_.empty()) 64 delete (this->weaponSets_.begin()->second);64 this->weaponSets_.begin()->second->destroy(); 65 65 66 66 while (!this->weaponPacks_.empty()) 67 delete (*this->weaponPacks_.begin());67 (*this->weaponPacks_.begin())->destroy(); 68 68 69 69 while (!this->weaponSlots_.empty()) 70 delete (*this->weaponSlots_.begin());70 (*this->weaponSlots_.begin())->destroy(); 71 71 72 72 while (!this->munitions_.empty()) 73 { delete (this->munitions_.begin()->second); this->munitions_.erase(this->munitions_.begin()); }73 { this->munitions_.begin()->second->destroy(); this->munitions_.erase(this->munitions_.begin()); } 74 74 } 75 75 }
Note: See TracChangeset
for help on using the changeset viewer.