Changeset 4312 in orxonox.OLD for orxonox/trunk/src/util/object_manager.h
- Timestamp:
- May 26, 2005, 11:18:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.