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