Changeset 1683 for code/branches/core3/src/orxonox/objects
- Timestamp:
- Aug 30, 2008, 1:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/objects/Projectile.h
r1682 r1683 97 97 ClassIdentifier<T>* identifier = ClassIdentifier<T>::getIdentifier(); 98 98 99 /*100 SuperFunctionCaller_testfunction* superFunctionCaller = 0;101 // Search for an existing caller within all direct children102 for (std::set<const Identifier*>::iterator it = identifier->getDirectChildrenIntern().begin(); it != identifier->getDirectChildrenIntern().end(); ++it)103 if (((ClassIdentifier<T>*)(*it))->superFunctionCaller_testfunction_)104 superFunctionCaller = ((ClassIdentifier<T>*)(*it))->superFunctionCaller_testfunction_;105 // Check if we've found an existing caller - if not, create a new one106 if (!superFunctionCaller)107 superFunctionCaller = new SuperFunctionClassCaller_testfunction<T>;108 */109 99 // Iterate through all children and assign the caller 110 100 for (std::set<const Identifier*>::iterator it = identifier->getDirectChildrenIntern().begin(); it != identifier->getDirectChildrenIntern().end(); ++it) … … 113 103 { 114 104 std::cout << "adding functionpointer to " << ((ClassIdentifier<T>*)(*it))->getName() << std::endl; 115 // ((ClassIdentifier<T>*)(*it))->superFunctionCaller_testfunction_ = superFunctionCaller;116 105 ((ClassIdentifier<T>*)(*it))->superFunctionCaller_testfunction_ = new SuperFunctionClassCaller_testfunction<T>; 117 106 }
Note: See TracChangeset
for help on using the changeset viewer.