Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3901 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Apr 20, 2005, 12:16:32 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/levelLoader.tmp: temporaty

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  
    2020AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/animation
    2121AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/common
     22AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/levelloader
     23
    2224
    2325
     
    7779                 lib/xmlparser/tinyxmlparser.cc \
    7880                 util/common/list.cc \
     81                 util/levelloader/factory.cc \
    7982                 util/resource_manager.cc \
    8083                 lib/math/vector.cc \
    8184                 lib/math/curve.cc \
    82                  glmenu/glmenu_imagescreen.cc
     85                 glmenu/glmenu_imagescreen.cc  
    8386
    8487noinst_HEADERS = orxonox.h \
     
    136139                 util/common/list.h \
    137140                 util/common/list_template.h \
     141                 utils/levelloader/factory.h \
    138142                 util/resource_manager.h \
    139143                 lib/util/ini_parser.h \
  • orxonox/branches/levelLoader.tmp/src/Makefile.in

    r3900 r3901  
    7171        ini_parser.$(OBJEXT) tinystr.$(OBJEXT) tinyxml.$(OBJEXT) \
    7272        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)
    7575orxonox_OBJECTS = $(am_orxonox_OBJECTS)
    7676orxonox_LDADD = $(LDADD)
     
    8787@AMDEP_TRUE@    ./$(DEPDIR)/command_node.Po ./$(DEPDIR)/curve.Po \
    8888@AMDEP_TRUE@    ./$(DEPDIR)/data_tank.Po \
    89 @AMDEP_TRUE@    ./$(DEPDIR)/environment.Po \
     89@AMDEP_TRUE@    ./$(DEPDIR)/environment.Po ./$(DEPDIR)/factory.Po \
    9090@AMDEP_TRUE@    ./$(DEPDIR)/game_loader.Po \
    9191@AMDEP_TRUE@    ./$(DEPDIR)/garbage_collector.Po \
     
    242242target_vendor = @target_vendor@
    243243MAINSRCDIR = .
    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
     244AM_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
    245245AM_LDFLAGS = $(MWINDOWS)
    246246orxonox_SOURCES = orxonox.cc \
     
    292292                 lib/xmlparser/tinyxmlparser.cc \
    293293                 util/common/list.cc \
     294                 util/levelloader/factory.cc \
    294295                 util/resource_manager.cc \
    295296                 lib/math/vector.cc \
    296297                 lib/math/curve.cc \
    297                  glmenu/glmenu_imagescreen.cc
     298                 glmenu/glmenu_imagescreen.cc  
    298299
    299300noinst_HEADERS = orxonox.h \
     
    351352                 util/common/list.h \
    352353                 util/common/list_template.h \
     354                 utils/levelloader/factory.h \
    353355                 util/resource_manager.h \
    354356                 lib/util/ini_parser.h \
     
    450452@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_tank.Po@am__quote@
    451453@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/environment.Po@am__quote@
     454@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/factory.Po@am__quote@
    452455@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/game_loader.Po@am__quote@
    453456@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/garbage_collector.Po@am__quote@
     
    11601163@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    11611164@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
     1166factory.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
     1174factory.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`
    11621181
    11631182resource_manager.o: util/resource_manager.cc
     
    13471366
    13481367distdir: $(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_entities
     1368        $(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
    13501369        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    13511370        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  • orxonox/branches/levelLoader.tmp/src/util/levelLoader/factory.h

    r3898 r3901  
    66#ifndef _FACTORY_H
    77#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;
    825
    926#include "stdincl.h"
Note: See TracChangeset for help on using the changeset viewer.