Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3994 in orxonox.OLD for orxonox/branches/ll2trunktemp


Ignore:
Timestamp:
Apr 27, 2005, 1:50:23 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/ll2trunktmp: fixed a problem with levelchange: now the gameloader iterates through the levels

Location:
orxonox/branches/ll2trunktemp/src
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/ll2trunktemp/src/Makefile.in

    r3992 r3994  
    382382          esac; \
    383383        done; \
    384         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
     384        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/Makefile'; \
    385385        cd $(top_srcdir) && \
    386           $(AUTOMAKE) --gnu  src/Makefile
     386          $(AUTOMAKE) --foreign  src/Makefile
    387387.PRECIOUS: Makefile
    388388Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/ll2trunktemp/src/factory.cc

    r3940 r3994  
    4545Factory::~Factory ()
    4646{
    47         if( next != NULL)       delete next;
     47  //if( next != NULL)   delete next;
    4848}
    4949
  • orxonox/branches/ll2trunktemp/src/lib/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    184184          esac; \
    185185        done; \
    186         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/Makefile'; \
     186        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/Makefile'; \
    187187        cd $(top_srcdir) && \
    188           $(AUTOMAKE) --gnu  src/lib/Makefile
     188          $(AUTOMAKE) --foreign  src/lib/Makefile
    189189.PRECIOUS: Makefile
    190190Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    279279        tags=; \
    280280        here=`pwd`; \
    281         if (etags --etags-include --version) >/dev/null 2>&1; then \
     281        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
    282282          include_option=--etags-include; \
     283          empty_fix=.; \
    283284        else \
    284285          include_option=--include; \
     286          empty_fix=; \
    285287        fi; \
    286288        list='$(SUBDIRS)'; for subdir in $$list; do \
    287289          if test "$$subdir" = .; then :; else \
    288             test -f $$subdir/TAGS && \
     290            test ! -f $$subdir/TAGS || \
    289291              tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
    290292          fi; \
     
    296298          $(AWK) '    { files[$$0] = 1; } \
    297299               END { for (i in files) print i; }'`; \
    298         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    299           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    300              $$tags $$unique
     300        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     301          test -n "$$unique" || unique=$$empty_fix; \
     302          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     303            $$tags $$unique; \
     304        fi
    301305ctags: CTAGS
    302306CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  • orxonox/branches/ll2trunktemp/src/lib/graphics/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    178178          esac; \
    179179        done; \
    180         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/Makefile'; \
     180        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/Makefile'; \
    181181        cd $(top_srcdir) && \
    182           $(AUTOMAKE) --gnu  src/lib/graphics/Makefile
     182          $(AUTOMAKE) --foreign  src/lib/graphics/Makefile
    183183.PRECIOUS: Makefile
    184184Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    273273        tags=; \
    274274        here=`pwd`; \
    275         if (etags --etags-include --version) >/dev/null 2>&1; then \
     275        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
    276276          include_option=--etags-include; \
     277          empty_fix=.; \
    277278        else \
    278279          include_option=--include; \
     280          empty_fix=; \
    279281        fi; \
    280282        list='$(SUBDIRS)'; for subdir in $$list; do \
    281283          if test "$$subdir" = .; then :; else \
    282             test -f $$subdir/TAGS && \
     284            test ! -f $$subdir/TAGS || \
    283285              tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
    284286          fi; \
     
    290292          $(AWK) '    { files[$$0] = 1; } \
    291293               END { for (i in files) print i; }'`; \
    292         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    293           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    294              $$tags $$unique
     294        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     295          test -n "$$unique" || unique=$$empty_fix; \
     296          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     297            $$tags $$unique; \
     298        fi
    295299ctags: CTAGS
    296300CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  • orxonox/branches/ll2trunktemp/src/lib/graphics/importer/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    4242subdir = src/lib/graphics/importer
    4343DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
    44         $(srcdir)/Makefile.in TODO
     44        $(srcdir)/Makefile.in
    4545ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4646am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    5050CONFIG_HEADER = $(top_builddir)/config.h
    5151CONFIG_CLEAN_FILES =
    52 am__installdirs = $(DESTDIR)$(bindir)
     52am__installdirs = "$(DESTDIR)$(bindir)"
    5353binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    5454PROGRAMS = $(bin_PROGRAMS)
     
    236236          esac; \
    237237        done; \
    238         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile'; \
     238        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile'; \
    239239        cd $(top_srcdir) && \
    240           $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile
     240          $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile
    241241.PRECIOUS: Makefile
    242242Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    258258install-binPROGRAMS: $(bin_PROGRAMS)
    259259        @$(NORMAL_INSTALL)
    260         $(mkdir_p) $(DESTDIR)$(bindir)
     260        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
    261261        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    262262          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    264264          ; then \
    265265            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    266            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
    267            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
     266           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
     267           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
    268268          else :; fi; \
    269269        done
     
    273273        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    274274          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    275           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
    276           rm -f $(DESTDIR)$(bindir)/$$f; \
     275          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
     276          rm -f "$(DESTDIR)$(bindir)/$$f"; \
    277277        done
    278278
     
    454454          $(AWK) '    { files[$$0] = 1; } \
    455455               END { for (i in files) print i; }'`; \
    456         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    457           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    458              $$tags $$unique
     456        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     457          test -n "$$unique" || unique=$$empty_fix; \
     458          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     459            $$tags $$unique; \
     460        fi
    459461ctags: CTAGS
    460462CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    511513all-am: Makefile $(PROGRAMS) $(HEADERS)
    512514installdirs:
    513         $(mkdir_p) $(DESTDIR)$(bindir)
     515        for dir in "$(DESTDIR)$(bindir)"; do \
     516          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     517        done
    514518install: install-am
    515519install-exec: install-exec-am
  • orxonox/branches/ll2trunktemp/src/lib/gui/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    180180          esac; \
    181181        done; \
    182         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/Makefile'; \
     182        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/Makefile'; \
    183183        cd $(top_srcdir) && \
    184           $(AUTOMAKE) --gnu  src/lib/gui/Makefile
     184          $(AUTOMAKE) --foreign  src/lib/gui/Makefile
    185185.PRECIOUS: Makefile
    186186Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    275275        tags=; \
    276276        here=`pwd`; \
    277         if (etags --etags-include --version) >/dev/null 2>&1; then \
     277        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
    278278          include_option=--etags-include; \
     279          empty_fix=.; \
    279280        else \
    280281          include_option=--include; \
     282          empty_fix=; \
    281283        fi; \
    282284        list='$(SUBDIRS)'; for subdir in $$list; do \
    283285          if test "$$subdir" = .; then :; else \
    284             test -f $$subdir/TAGS && \
     286            test ! -f $$subdir/TAGS || \
    285287              tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
    286288          fi; \
     
    292294          $(AWK) '    { files[$$0] = 1; } \
    293295               END { for (i in files) print i; }'`; \
    294         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    295           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    296              $$tags $$unique
     296        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     297          test -n "$$unique" || unique=$$empty_fix; \
     298          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     299            $$tags $$unique; \
     300        fi
    297301ctags: CTAGS
    298302CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  • orxonox/branches/ll2trunktemp/src/lib/gui/console/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    5050CONFIG_HEADER = $(top_builddir)/config.h
    5151CONFIG_CLEAN_FILES =
    52 am__installdirs = $(DESTDIR)$(bindir)
     52am__installdirs = "$(DESTDIR)$(bindir)"
    5353binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    5454PROGRAMS = $(bin_PROGRAMS)
     
    206206          esac; \
    207207        done; \
    208         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile'; \
     208        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile'; \
    209209        cd $(top_srcdir) && \
    210           $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile
     210          $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile
    211211.PRECIOUS: Makefile
    212212Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    228228install-binPROGRAMS: $(bin_PROGRAMS)
    229229        @$(NORMAL_INSTALL)
    230         $(mkdir_p) $(DESTDIR)$(bindir)
     230        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
    231231        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    232232          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    234234          ; then \
    235235            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    236            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
    237            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
     236           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
     237           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
    238238          else :; fi; \
    239239        done
     
    243243        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    244244          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    245           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
    246           rm -f $(DESTDIR)$(bindir)/$$f; \
     245          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
     246          rm -f "$(DESTDIR)$(bindir)/$$f"; \
    247247        done
    248248
     
    300300          $(AWK) '    { files[$$0] = 1; } \
    301301               END { for (i in files) print i; }'`; \
    302         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    303           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    304              $$tags $$unique
     302        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     303          test -n "$$unique" || unique=$$empty_fix; \
     304          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     305            $$tags $$unique; \
     306        fi
    305307ctags: CTAGS
    306308CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    357359all-am: Makefile $(PROGRAMS) $(HEADERS)
    358360installdirs:
    359         $(mkdir_p) $(DESTDIR)$(bindir)
     361        for dir in "$(DESTDIR)$(bindir)"; do \
     362          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     363        done
    360364install: install-am
    361365install-exec: install-exec-am
  • orxonox/branches/ll2trunktemp/src/lib/gui/gui/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    5050CONFIG_HEADER = $(top_builddir)/config.h
    5151CONFIG_CLEAN_FILES =
    52 am__installdirs = $(DESTDIR)$(bindir)
     52am__installdirs = "$(DESTDIR)$(bindir)"
    5353binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    5454PROGRAMS = $(bin_PROGRAMS)
     
    240240          esac; \
    241241        done; \
    242         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile'; \
     242        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile'; \
    243243        cd $(top_srcdir) && \
    244           $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile
     244          $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile
    245245.PRECIOUS: Makefile
    246246Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    262262install-binPROGRAMS: $(bin_PROGRAMS)
    263263        @$(NORMAL_INSTALL)
    264         $(mkdir_p) $(DESTDIR)$(bindir)
     264        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
    265265        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    266266          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    268268          ; then \
    269269            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    270            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
    271            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
     270           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
     271           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
    272272          else :; fi; \
    273273        done
     
    277277        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    278278          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    279           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
    280           rm -f $(DESTDIR)$(bindir)/$$f; \
     279          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
     280          rm -f "$(DESTDIR)$(bindir)/$$f"; \
    281281        done
    282282
     
    340340          $(AWK) '    { files[$$0] = 1; } \
    341341               END { for (i in files) print i; }'`; \
    342         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    343           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    344              $$tags $$unique
     342        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     343          test -n "$$unique" || unique=$$empty_fix; \
     344          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     345            $$tags $$unique; \
     346        fi
    345347ctags: CTAGS
    346348CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    397399all-am: Makefile $(PROGRAMS) $(HEADERS)
    398400installdirs:
    399         $(mkdir_p) $(DESTDIR)$(bindir)
     401        for dir in "$(DESTDIR)$(bindir)"; do \
     402          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     403        done
    400404install: install-am
    401405install-exec: install-exec-am
  • orxonox/branches/ll2trunktemp/src/story_entities/campaign.cc

    r3989 r3994  
    3737Campaign::Campaign ( TiXmlElement* root)
    3838{
    39         TiXmlElement* element;
    40         const char* string;
    41         int id;
    42        
    43         PRINTF0("Loading Campaign...\n");
    44        
    45         assert( root != NULL);
    46         GameLoader* loader = GameLoader::getInstance();
    47        
     39  TiXmlElement* element;
     40  const char* string;
     41  int id;
     42 
     43  PRINTF0("Loading Campaign...\n");
     44 
     45  assert( root != NULL);
     46  GameLoader* loader = GameLoader::getInstance();
     47 
    4848  this->entities = new tList<StoryEntity>();
    4949  this->isInit = false;
    5050 
    5151  // grab all the necessary parameters
    52         string = grabParameter( root, "identifier");
    53         if( string == NULL || sscanf(string, "%d", &id) != 1)
    54         {
    55                 PRINTF0("Campaign is missing a proper 'identifier'\n");
    56                 this->setStoryID( -1);
    57         }
    58         else this->setStoryID( id);
     52  string = grabParameter( root, "identifier");
     53  if( string == NULL || sscanf(string, "%d", &id) != 1)
     54    {
     55      PRINTF0("Campaign is missing a proper 'identifier'\n");
     56      this->setStoryID( -1);
     57    }
     58  else this->setStoryID( id);
    5959 
    6060  // find WorldList
    6161  element = root->FirstChildElement( "WorldList");
    6262  if( element == NULL)
    63   {
    64                 PRINTF0("Campaign is missing a proper 'WorldList'\n");
    65   }
     63    {
     64      PRINTF0("Campaign is missing a proper 'WorldList'\n");
     65    }
    6666  else
    67         element = element->FirstChildElement();
     67    element = element->FirstChildElement();
    6868 
    6969  // load Worlds/Subcampaigns/Whatever
    7070  StoryEntity* lastCreated = NULL;
    71         while( element != NULL)
    72         {
    73                 StoryEntity* created = (StoryEntity*) loader->fabricate( element);
    74                 if( lastCreated != NULL) created->setNextStoryID( lastCreated->getStoryID());
    75                 if( created != NULL)
    76                 {
    77                         this->addEntity( created);     
    78                         lastCreated = created;
    79                 }
    80                 element = element->NextSiblingElement();
    81         }
    82         if( lastCreated != NULL)        lastCreated->setStoryID( WORLD_ID_GAMEEND);
     71  while( element != NULL)
     72    {
     73      printf("Campaign: Constructor: adding a world\n");
     74      StoryEntity* created = (StoryEntity*) loader->fabricate( element);
     75      /*
     76      if( lastCreated != NULL)
     77        created->setNextStoryID( lastCreated->getStoryID());
     78      else
     79        created->setNextStoryID( WORLD_ID_GAMEEND);
     80      */
     81      if( created != NULL)
     82        {
     83          this->addEntity( created);   
     84          lastCreated = created;
     85        }
     86      element = element->NextSiblingElement();
     87    }
     88  //if( lastCreated != NULL)
     89  //lastCreated->setStoryID( WORLD_ID_GAMEEND);
    8390}
    8491
  • orxonox/branches/ll2trunktemp/src/story_entities/world.cc

    r3992 r3994  
    120120  this->constuctorInit("", -1);
    121121
    122         const char *string;
    123         char *name;
    124         int id;
    125 
    126         PRINTF0("Creating a World\n");
    127        
    128         // identifier
    129         string = grabParameter( root, "identifier");
    130         if( string == NULL || sscanf(string, "%d", &id) != 1)
    131         {
    132                 PRINTF0("World is missing a proper 'identifier'\n");
    133                 this->setStoryID( -1);
    134         }
    135         else setStoryID( id);
    136        
    137         // path
    138         string = grabParameter( root, "path");
    139         if( string == NULL)
    140         {
    141                 PRINTF0("World is missing a proper 'path'\n");
    142                 this->setPath( NULL);
    143         }
    144         else
    145         {
    146                 name = new char[strlen(string + 2)];
    147                 strcpy( name, string);
    148                 this->setPath( name);
    149         }
     122  const char *string;
     123  char *name;
     124  int id;
     125 
     126  PRINTF0("Creating a World\n");
     127 
     128  // identifier
     129  string = grabParameter( root, "identifier");
     130  if( string == NULL || sscanf(string, "%d", &id) != 1)
     131    {
     132      PRINTF0("World is missing a proper 'identifier'\n");
     133      this->setStoryID( -1);
     134    }
     135  else setStoryID( id);
     136
     137  // next id
     138  string = grabParameter( root, "nextid");
     139  if( string == NULL || sscanf(string, "%d", &id) != 1)
     140    {
     141      PRINTF0("World is missing a proper 'nextid'\n");
     142      this->setStoryID( -1);
     143    }
     144  else setNextStoryID( id);
     145 
     146
     147  // path
     148  string = grabParameter( root, "path");
     149  if( string == NULL)
     150    {
     151      PRINTF0("World is missing a proper 'path'\n");
     152      this->setPath( NULL);
     153    }
     154  else
     155    {
     156      name = new char[strlen(string + 2)];
     157      strcpy( name, string);
     158      this->setPath( name);
     159    }
    150160       
    151161  this->localPlayer = NULL;
  • orxonox/branches/ll2trunktemp/src/subprojects/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    178178          esac; \
    179179        done; \
    180         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/subprojects/Makefile'; \
     180        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/subprojects/Makefile'; \
    181181        cd $(top_srcdir) && \
    182           $(AUTOMAKE) --gnu  src/subprojects/Makefile
     182          $(AUTOMAKE) --foreign  src/subprojects/Makefile
    183183.PRECIOUS: Makefile
    184184Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    273273        tags=; \
    274274        here=`pwd`; \
    275         if (etags --etags-include --version) >/dev/null 2>&1; then \
     275        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
    276276          include_option=--etags-include; \
     277          empty_fix=.; \
    277278        else \
    278279          include_option=--include; \
     280          empty_fix=; \
    279281        fi; \
    280282        list='$(SUBDIRS)'; for subdir in $$list; do \
    281283          if test "$$subdir" = .; then :; else \
    282             test -f $$subdir/TAGS && \
     284            test ! -f $$subdir/TAGS || \
    283285              tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
    284286          fi; \
     
    290292          $(AWK) '    { files[$$0] = 1; } \
    291293               END { for (i in files) print i; }'`; \
    292         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    293           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    294              $$tags $$unique
     294        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     295          test -n "$$unique" || unique=$$empty_fix; \
     296          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     297            $$tags $$unique; \
     298        fi
    295299ctags: CTAGS
    296300CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  • orxonox/branches/ll2trunktemp/src/subprojects/testmain/Makefile.in

    r3940 r3994  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.5 from Makefile.am.
    22# @configure_input@
    33
     
    5050CONFIG_HEADER = $(top_builddir)/config.h
    5151CONFIG_CLEAN_FILES =
    52 am__installdirs = $(DESTDIR)$(bindir)
     52am__installdirs = "$(DESTDIR)$(bindir)"
    5353binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    5454PROGRAMS = $(bin_PROGRAMS)
     
    198198          esac; \
    199199        done; \
    200         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/subprojects/testmain/Makefile'; \
     200        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/subprojects/testmain/Makefile'; \
    201201        cd $(top_srcdir) && \
    202           $(AUTOMAKE) --gnu  src/subprojects/testmain/Makefile
     202          $(AUTOMAKE) --foreign  src/subprojects/testmain/Makefile
    203203.PRECIOUS: Makefile
    204204Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    220220install-binPROGRAMS: $(bin_PROGRAMS)
    221221        @$(NORMAL_INSTALL)
    222         $(mkdir_p) $(DESTDIR)$(bindir)
     222        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
    223223        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    224224          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    226226          ; then \
    227227            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    228            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
    229            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
     228           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
     229           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
    230230          else :; fi; \
    231231        done
     
    235235        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    236236          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    237           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
    238           rm -f $(DESTDIR)$(bindir)/$$f; \
     237          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
     238          rm -f "$(DESTDIR)$(bindir)/$$f"; \
    239239        done
    240240
     
    290290          $(AWK) '    { files[$$0] = 1; } \
    291291               END { for (i in files) print i; }'`; \
    292         test -z "$(ETAGS_ARGS)$$tags$$unique" \
    293           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    294              $$tags $$unique
     292        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     293          test -n "$$unique" || unique=$$empty_fix; \
     294          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     295            $$tags $$unique; \
     296        fi
    295297ctags: CTAGS
    296298CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    347349all-am: Makefile $(PROGRAMS) $(HEADERS)
    348350installdirs:
    349         $(mkdir_p) $(DESTDIR)$(bindir)
     351        for dir in "$(DESTDIR)$(bindir)"; do \
     352          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     353        done
    350354install: install-am
    351355install-exec: install-exec-am
Note: See TracChangeset for help on using the changeset viewer.