- Timestamp:
- May 2, 2011, 3:58:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup/src/modules/pickup/items/ShrinkPickup.cc
r8375 r8381 7 7 #include "pickup/PickupIdentifier.h" 8 8 #include "worldentities/pawns/Pawn.h" 9 10 #include "weaponsystem/WeaponSlot.h" 11 #include "weaponsystem/Weapon.h" 9 12 10 13 namespace orxonox … … 40 43 41 44 COUT(0) << "shrinking..." << endl; 45 //this->pawn->setScale3D(this->pawn->getScale3D() / 2.0); 42 46 std::set<WorldEntity*> set = this->pawn->getAttachedObjects(); 43 47 for(std::set<WorldEntity*>::iterator it = set.begin(); it != set.end(); it++) 44 48 { 45 49 (*it)->setScale((*it)->getScale() / 5.0); 50 (*it)->setPosition((*it)->getPosition() / 5.0); 46 51 } 52 47 53 durationTimer.setTimer(10, false, createExecutor(createFunctor(&ShrinkPickup::terminate, this))); 48 54 } … … 55 61 void ShrinkPickup::terminate(void) 56 62 { 63 //this->pawn->setScale3D(this->pawn->getScale3D() * 5.0); 64 57 65 std::set<WorldEntity*> set = this->pawn->getAttachedObjects(); 58 66 for(std::set<WorldEntity*>::iterator it = set.begin(); it != set.end(); it++)
Note: See TracChangeset
for help on using the changeset viewer.