Changeset 4885 in orxonox.OLD for orxonox/trunk/src/util/loading
- Timestamp:
- Jul 18, 2005, 3:36:18 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/factory.h
r4836 r4885 15 15 16 16 /*! 17 \file factory.h18 \brief A loadable object handler17 * @file factory.h 18 * @brief A loadable object handler 19 19 */ 20 20 … … 31 31 32 32 /** 33 Creates a factory to a Loadable Class. 34 this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 35 @todo make factoryName a BaseObject-parameter. (else it would be redundant) 33 * Creates a factory to a Loadable Class. 34 * this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 36 35 */ 37 #define CREATE_FACTORY(CLASS_NAME) tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) 36 #define CREATE_FACTORY(CLASS_NAME) \ 37 tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) 38 38 39 39 //! The Factory is a loadable object handler … … 48 48 49 49 static void registerFactory( Factory* factory); 50 /** \briefsets the Next factory in the list @param nextFactory the next factory */50 /** sets the Next factory in the list @param nextFactory the next factory */ 51 51 inline void setNext( Factory* nextFactory) { this->next = nextFactory; }; 52 52 /** @returns the first factory */ … … 54 54 /** @returns the next factory */ 55 55 Factory* getNext() const { return this->next; }; 56 57 58 private:59 56 60 57 private: -
orxonox/trunk/src/util/loading/game_loader.cc
r4838 r4885 19 19 #include "campaign.h" 20 20 #include "world.h" 21 #include "player.h"22 21 #include "orxonox.h" 23 22 #include "camera.h" -
orxonox/trunk/src/util/loading/game_loader.h
r4836 r4885 1 1 /*! 2 \file game_loader.h3 2 * @file game_loader.h 3 * loads campaigns, worlds and all other story_entities 4 4 */ 5 5 … … 18 18 class Campaign; 19 19 class World; 20 class Camera;21 class CammandNode;22 20 class Factory; 23 21 class TiXmlElement;
Note: See TracChangeset
for help on using the changeset viewer.