Changeset 3528 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Mar 13, 2005, 9:09:25 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.in
r3521 r3528 55 55 am_orxonox_OBJECTS = orxonox.$(OBJEXT) game_loader.$(OBJEXT) \ 56 56 command_node.$(OBJEXT) keynames.$(OBJEXT) camera.$(OBJEXT) \ 57 track_manager.$(OBJEXT) light.$(OBJEXT) story_entity.$(OBJEXT) \58 campaign.$(OBJEXT) world.$(OBJEXT) world_entity.$(OBJEXT) \59 player.$(OBJEXT) environment.$(OBJEXT) skysphere.$(OBJEXT) \60 primitive.$(OBJEXT) ai.$(OBJEXT) p_node.$(OBJEXT) \61 null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \57 track_manager.$(OBJEXT) track_node.$(OBJEXT) light.$(OBJEXT) \ 58 story_entity.$(OBJEXT) campaign.$(OBJEXT) world.$(OBJEXT) \ 59 world_entity.$(OBJEXT) player.$(OBJEXT) environment.$(OBJEXT) \ 60 skysphere.$(OBJEXT) primitive.$(OBJEXT) ai.$(OBJEXT) \ 61 p_node.$(OBJEXT) null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \ 62 62 data_tank.$(OBJEXT) fontset.$(OBJEXT) array.$(OBJEXT) \ 63 63 objModel.$(OBJEXT) model.$(OBJEXT) material.$(OBJEXT) \ … … 88 88 @AMDEP_TRUE@ ./$(DEPDIR)/primitive.Po ./$(DEPDIR)/skysphere.Po \ 89 89 @AMDEP_TRUE@ ./$(DEPDIR)/story_entity.Po ./$(DEPDIR)/texture.Po \ 90 @AMDEP_TRUE@ ./$(DEPDIR)/track_manager.Po ./$(DEPDIR)/vector.Po \ 90 @AMDEP_TRUE@ ./$(DEPDIR)/track_manager.Po \ 91 @AMDEP_TRUE@ ./$(DEPDIR)/track_node.Po ./$(DEPDIR)/vector.Po \ 91 92 @AMDEP_TRUE@ ./$(DEPDIR)/world.Po ./$(DEPDIR)/world_entity.Po 92 93 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ … … 223 224 camera.cc \ 224 225 track_manager.cc \ 226 track_node.cc \ 225 227 light.cc \ 226 228 story_entities/story_entity.cc \ … … 262 264 message_structures.h \ 263 265 light.h \ 266 track_manager.h \ 267 track_node.h \ 264 268 story_entities/story_entity.h \ 265 269 story_entities/story_def.h \ … … 315 319 esac; \ 316 320 done; \ 317 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/Makefile'; \321 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 318 322 cd $(top_srcdir) && \ 319 $(AUTOMAKE) -- foreignsrc/Makefile323 $(AUTOMAKE) --gnu src/Makefile 320 324 .PRECIOUS: Makefile 321 325 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 399 403 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/texture.Po@am__quote@ 400 404 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/track_manager.Po@am__quote@ 405 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/track_node.Po@am__quote@ 401 406 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector.Po@am__quote@ 402 407 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/world.Po@am__quote@ -
orxonox/trunk/src/lib/Makefile.in
r3502 r3528 181 181 esac; \ 182 182 done; \ 183 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/Makefile'; \183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \ 184 184 cd $(top_srcdir) && \ 185 $(AUTOMAKE) -- foreignsrc/lib/Makefile185 $(AUTOMAKE) --gnu src/lib/Makefile 186 186 .PRECIOUS: Makefile 187 187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/Makefile.in
r3502 r3528 175 175 esac; \ 176 176 done; \ 177 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile'; \177 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/Makefile'; \ 178 178 cd $(top_srcdir) && \ 179 $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile179 $(AUTOMAKE) --gnu src/lib/graphics/Makefile 180 180 .PRECIOUS: Makefile 181 181 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/importer/Makefile.in
r3502 r3528 215 215 esac; \ 216 216 done; \ 217 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile'; \217 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile'; \ 218 218 cd $(top_srcdir) && \ 219 $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile219 $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile 220 220 .PRECIOUS: Makefile 221 221 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/Makefile.in
r3502 r3528 177 177 esac; \ 178 178 done; \ 179 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile'; \179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/Makefile'; \ 180 180 cd $(top_srcdir) && \ 181 $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile181 $(AUTOMAKE) --gnu src/lib/gui/Makefile 182 182 .PRECIOUS: Makefile 183 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/console/Makefile.in
r3502 r3528 203 203 esac; \ 204 204 done; \ 205 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/console/Makefile'; \205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/console/Makefile'; \ 206 206 cd $(top_srcdir) && \ 207 $(AUTOMAKE) -- foreignsrc/lib/gui/console/Makefile207 $(AUTOMAKE) --gnu src/lib/gui/console/Makefile 208 208 .PRECIOUS: Makefile 209 209 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/gui/Makefile.in
r3502 r3528 236 236 esac; \ 237 237 done; \ 238 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/gui/Makefile'; \238 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/gui/Makefile'; \ 239 239 cd $(top_srcdir) && \ 240 $(AUTOMAKE) -- foreignsrc/lib/gui/gui/Makefile240 $(AUTOMAKE) --gnu src/lib/gui/gui/Makefile 241 241 .PRECIOUS: Makefile 242 242 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/track_manager.cc
r3527 r3528 19 19 #include "p_node.h" 20 20 21 #include "track_node.h" 22 21 23 #include <stdarg.h> 22 #include "p_node.h"23 24 24 25 using namespace std; … … 206 207 { 207 208 this->setClassName ("TrackManager"); 209 210 singletonRef = this; 208 211 209 212 PRINTF(3)("Initializing the TrackManager\n"); … … 214 217 this->maxTime = 0; 215 218 this->trackElemCount = 1; 216 this->bindSlave = NULL;219 this->bindSlave = TrackNode::getInstance(); 217 220 } 218 221 … … 242 245 TrackManager* TrackManager::getInstance(void) 243 246 { 244 if (TrackManager::singletonRef) 245 return TrackManager::singletonRef; 246 else 247 return TrackManager::singletonRef = new TrackManager(); 247 if (!singletonRef) 248 singletonRef = new TrackManager(); 249 return singletonRef; 248 250 } 249 251 … … 694 696 void TrackManager::setBindSlave(PNode* bindSlave) 695 697 { 696 if ( !this->bindSlave)698 if (this->bindSlave == TrackNode::getInstance() || bindSlave == TrackNode::getInstance()) 697 699 this->bindSlave = bindSlave; 700 else 701 PRINTF(2)("Already a Bindslave set that is not the TrackNode itself. Not updating\n"); 698 702 } 699 703 -
orxonox/trunk/src/track_node.cc
r3522 r3528 29 29 TrackNode* TrackNode::getInstance () 30 30 { 31 if ( singletonRef == NULL)31 if (!singletonRef) 32 32 singletonRef = new TrackNode (); 33 33 return singletonRef; … … 41 41 TrackNode::TrackNode () 42 42 { 43 this->setClassName("TrackNode"); 44 singletonRef = this; 45 43 46 NullParent::getInstance()->addChild(this); 44 47 this->trackManager = TrackManager::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.