- Timestamp:
- Apr 20, 2005, 12:16:32 AM (20 years ago)
- Location:
- orxonox/branches/levelLoader.tmp/src
- Files:
-
- 1 added
- 1 deleted
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelLoader.tmp/src/Makefile.am
r3900 r3901 20 20 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/animation 21 21 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/common 22 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/levelloader 23 22 24 23 25 … … 77 79 lib/xmlparser/tinyxmlparser.cc \ 78 80 util/common/list.cc \ 81 util/levelloader/factory.cc \ 79 82 util/resource_manager.cc \ 80 83 lib/math/vector.cc \ 81 84 lib/math/curve.cc \ 82 glmenu/glmenu_imagescreen.cc 85 glmenu/glmenu_imagescreen.cc 83 86 84 87 noinst_HEADERS = orxonox.h \ … … 136 139 util/common/list.h \ 137 140 util/common/list_template.h \ 141 utils/levelloader/factory.h \ 138 142 util/resource_manager.h \ 139 143 lib/util/ini_parser.h \ -
orxonox/branches/levelLoader.tmp/src/Makefile.in
r3900 r3901 71 71 ini_parser.$(OBJEXT) tinystr.$(OBJEXT) tinyxml.$(OBJEXT) \ 72 72 tinyxmlerror.$(OBJEXT) tinyxmlparser.$(OBJEXT) list.$(OBJEXT) \ 73 resource_manager.$(OBJEXT) vector.$(OBJEXT) curve.$(OBJEXT) \74 glmenu_imagescreen.$(OBJEXT)73 factory.$(OBJEXT) resource_manager.$(OBJEXT) vector.$(OBJEXT) \ 74 curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) 75 75 orxonox_OBJECTS = $(am_orxonox_OBJECTS) 76 76 orxonox_LDADD = $(LDADD) … … 87 87 @AMDEP_TRUE@ ./$(DEPDIR)/command_node.Po ./$(DEPDIR)/curve.Po \ 88 88 @AMDEP_TRUE@ ./$(DEPDIR)/data_tank.Po \ 89 @AMDEP_TRUE@ ./$(DEPDIR)/environment.Po \89 @AMDEP_TRUE@ ./$(DEPDIR)/environment.Po ./$(DEPDIR)/factory.Po \ 90 90 @AMDEP_TRUE@ ./$(DEPDIR)/game_loader.Po \ 91 91 @AMDEP_TRUE@ ./$(DEPDIR)/garbage_collector.Po \ … … 242 242 target_vendor = @target_vendor@ 243 243 MAINSRCDIR = . 244 AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/coord -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/graphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/gui -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai -I$(MAINSRCDIR)/util -I$(MAINSRCDIR)/util/animation -I$(MAINSRCDIR)/util/common 244 AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/coord -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/graphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/gui -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai -I$(MAINSRCDIR)/util -I$(MAINSRCDIR)/util/animation -I$(MAINSRCDIR)/util/common -I$(MAINSRCDIR)/util/levelloader 245 245 AM_LDFLAGS = $(MWINDOWS) 246 246 orxonox_SOURCES = orxonox.cc \ … … 292 292 lib/xmlparser/tinyxmlparser.cc \ 293 293 util/common/list.cc \ 294 util/levelloader/factory.cc \ 294 295 util/resource_manager.cc \ 295 296 lib/math/vector.cc \ 296 297 lib/math/curve.cc \ 297 glmenu/glmenu_imagescreen.cc 298 glmenu/glmenu_imagescreen.cc 298 299 299 300 noinst_HEADERS = orxonox.h \ … … 351 352 util/common/list.h \ 352 353 util/common/list_template.h \ 354 utils/levelloader/factory.h \ 353 355 util/resource_manager.h \ 354 356 lib/util/ini_parser.h \ … … 450 452 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_tank.Po@am__quote@ 451 453 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/environment.Po@am__quote@ 454 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/factory.Po@am__quote@ 452 455 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/game_loader.Po@am__quote@ 453 456 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/garbage_collector.Po@am__quote@ … … 1160 1163 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1161 1164 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o list.obj `if test -f 'util/common/list.cc'; then $(CYGPATH_W) 'util/common/list.cc'; else $(CYGPATH_W) '$(srcdir)/util/common/list.cc'; fi` 1165 1166 factory.o: util/levelloader/factory.cc 1167 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT factory.o -MD -MP -MF "$(DEPDIR)/factory.Tpo" -c -o factory.o `test -f 'util/levelloader/factory.cc' || echo '$(srcdir)/'`util/levelloader/factory.cc; \ 1168 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/factory.Tpo" "$(DEPDIR)/factory.Po"; else rm -f "$(DEPDIR)/factory.Tpo"; exit 1; fi 1169 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/levelloader/factory.cc' object='factory.o' libtool=no @AMDEPBACKSLASH@ 1170 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/factory.Po' tmpdepfile='$(DEPDIR)/factory.TPo' @AMDEPBACKSLASH@ 1171 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1172 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o factory.o `test -f 'util/levelloader/factory.cc' || echo '$(srcdir)/'`util/levelloader/factory.cc 1173 1174 factory.obj: util/levelloader/factory.cc 1175 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT factory.obj -MD -MP -MF "$(DEPDIR)/factory.Tpo" -c -o factory.obj `if test -f 'util/levelloader/factory.cc'; then $(CYGPATH_W) 'util/levelloader/factory.cc'; else $(CYGPATH_W) '$(srcdir)/util/levelloader/factory.cc'; fi`; \ 1176 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/factory.Tpo" "$(DEPDIR)/factory.Po"; else rm -f "$(DEPDIR)/factory.Tpo"; exit 1; fi 1177 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/levelloader/factory.cc' object='factory.obj' libtool=no @AMDEPBACKSLASH@ 1178 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/factory.Po' tmpdepfile='$(DEPDIR)/factory.TPo' @AMDEPBACKSLASH@ 1179 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1180 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o factory.obj `if test -f 'util/levelloader/factory.cc'; then $(CYGPATH_W) 'util/levelloader/factory.cc'; else $(CYGPATH_W) '$(srcdir)/util/levelloader/factory.cc'; fi` 1162 1181 1163 1182 resource_manager.o: util/resource_manager.cc … … 1347 1366 1348 1367 distdir: $(DISTFILES) 1349 $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/lib/xmlparser $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/ world_entities1368 $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/lib/xmlparser $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/utils/levelloader $(distdir)/world_entities 1350 1369 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 1351 1370 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ -
orxonox/branches/levelLoader.tmp/src/util/levelLoader/factory.h
r3898 r3901 6 6 #ifndef _FACTORY_H 7 7 #define _FACTORY_H 8 9 10 /** creates a Subclass of Factory, that HOPEFULLY loads modules \todo check it for real */ 11 #define CREATE_FACTORY(x) \ 12 class x ## Factory : public Factory { \ 13 public: \ 14 x ## Factory (){setNext( NULL); setClassname( #x ); initialize();} \ 15 ~x ## Factory () {}; \ 16 private: \ 17 BaseObject* fabricate( TiXmlElement* root) \ 18 { \ 19 if(!strcmp(root->Value(), getClassname())) return new x ( root); \ 20 else if( getNext() != NULL) return getNext()->fabricate( root); \ 21 else return NULL; \ 22 } \ 23 }; \ 24 x ## Factory global_ ## x ## Factory; 8 25 9 26 #include "stdincl.h"
Note: See TracChangeset
for help on using the changeset viewer.