Changeset 4312 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- May 26, 2005, 11:18:59 PM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/object_manager.cc
r4311 r4312 63 63 64 64 65 /* 65 66 void ObjectManager::cache(classList index, int number, Projectile* copyObject) 66 67 { … … 72 73 } 73 74 } 75 */ 74 76 75 77 -
orxonox/trunk/src/util/object_manager.h
r4311 r4312 15 15 16 16 #include "base_object.h" 17 #include "projectile.h" 18 #include "list.h" 17 19 18 20 #define OM_ … … 29 31 30 32 31 32 33 34 33 class WorldEntity; 35 34 class GarbageCollector; 36 class Projectile; 35 37 36 38 37 template<class T> class tList; 39 38 template<class T> class ManagedObject; 40 39 40 41 42 43 41 44 #define mCache( Class ) \ 42 cache(classList index, int number, Class * copyObject) 45 cache(classList index, int number, Class * copyObject) \ 46 { \ 47 this->managedObjectList[index] = new tList<BaseObject>(); \ 48 for(int i = 0; i < number; ++i)\ 49 {\ 50 this->managedObjectList[index]->add(new Class (*copyObject));\ 51 }\ 52 } 43 53 44 54
Note: See TracChangeset
for help on using the changeset viewer.