Changeset 4392 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 30, 2005, 1:30:23 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.in
r4386 r4392 433 433 esac; \ 434 434 done; \ 435 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/Makefile'; \435 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 436 436 cd $(top_srcdir) && \ 437 $(AUTOMAKE) -- foreignsrc/Makefile437 $(AUTOMAKE) --gnu src/Makefile 438 438 .PRECIOUS: Makefile 439 439 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/Makefile.in
r4338 r4392 184 184 esac; \ 185 185 done; \ 186 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/Makefile'; \186 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \ 187 187 cd $(top_srcdir) && \ 188 $(AUTOMAKE) -- foreignsrc/lib/Makefile188 $(AUTOMAKE) --gnu src/lib/Makefile 189 189 .PRECIOUS: Makefile 190 190 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/Makefile.in
r4276 r4392 177 177 esac; \ 178 178 done; \ 179 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile'; \179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/Makefile'; \ 180 180 cd $(top_srcdir) && \ 181 $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile181 $(AUTOMAKE) --gnu src/lib/graphics/Makefile 182 182 .PRECIOUS: Makefile 183 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/importer/Makefile.in
r4276 r4392 181 181 esac; \ 182 182 done; \ 183 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile'; \183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile'; \ 184 184 cd $(top_srcdir) && \ 185 $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile185 $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile 186 186 .PRECIOUS: Makefile 187 187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/Makefile.in
r4276 r4392 179 179 esac; \ 180 180 done; \ 181 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile'; \181 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/Makefile'; \ 182 182 cd $(top_srcdir) && \ 183 $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile183 $(AUTOMAKE) --gnu src/lib/gui/Makefile 184 184 .PRECIOUS: Makefile 185 185 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/console/Makefile.in
r4276 r4392 205 205 esac; \ 206 206 done; \ 207 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/console/Makefile'; \207 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/console/Makefile'; \ 208 208 cd $(top_srcdir) && \ 209 $(AUTOMAKE) -- foreignsrc/lib/gui/console/Makefile209 $(AUTOMAKE) --gnu src/lib/gui/console/Makefile 210 210 .PRECIOUS: Makefile 211 211 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/gui/Makefile.in
r4338 r4392 242 242 esac; \ 243 243 done; \ 244 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/gui/Makefile'; \244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/gui/Makefile'; \ 245 245 cd $(top_srcdir) && \ 246 $(AUTOMAKE) -- foreignsrc/lib/gui/gui/Makefile246 $(AUTOMAKE) --gnu src/lib/gui/gui/Makefile 247 247 .PRECIOUS: Makefile 248 248 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/physics/Makefile.in
r4375 r4392 218 218 esac; \ 219 219 done; \ 220 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/physics/Makefile'; \220 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/physics/Makefile'; \ 221 221 cd $(top_srcdir) && \ 222 $(AUTOMAKE) -- foreignsrc/lib/physics/Makefile222 $(AUTOMAKE) --gnu src/lib/physics/Makefile 223 223 .PRECIOUS: Makefile 224 224 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/physics/physics_engine.cc
r4381 r4392 33 33 34 34 this->connections = new tList<PhysicsConnection>; 35 this->interfaces = new tList<PhysicsInterface>; 35 36 } 36 37 … … 57 58 { 58 59 PhysicsEngine::singletonRef = NULL; 60 } 61 62 63 /** 64 \brief adds a PhysicsInterface to the list of handeled physicsInterfaces 65 \param physicsInterface the interface to add 66 67 this is normally done in the constructor of any PhysicsInterface 68 */ 69 void PhysicsEngine::addPhysicsInterface(PhysicsInterface* physicsInterface) 70 { 71 this->interfaces->add(physicsInterface); 72 } 73 74 /** 75 \brief removes a PhysicsInterface from the list of handeled physicsInterfaces 76 \param physicsInterface the interface to remove 77 78 this is normally done in the destructor of any PhysicsInterface 79 */ 80 void PhysicsEngine::removePhysicsInterface(PhysicsInterface* physicsInterface) 81 { 82 this->interfaces->remove(physicsInterface); 59 83 } 60 84 … … 114 138 PRINT(0)("====================================\n"); 115 139 PRINT(0)(" reference: %p\n", this); 116 PRINT(0)(" numbers of Connections: %d\n", this->connections->getSize()); 140 PRINT(0)(" number of Interfaces: %d\n", this->interfaces->getSize()); 141 PRINT(0)(" number of Connections: %d\n", this->connections->getSize()); 117 142 118 143 PRINT(0)("==============================PHYS==\n"); -
orxonox/trunk/src/lib/physics/physics_engine.h
r4378 r4392 9 9 10 10 #include "base_object.h" 11 11 12 #include "physics_connection.h" 13 #include "physics_interface.h" 12 14 13 15 // Forward Declaration … … 22 24 virtual ~PhysicsEngine(void); 23 25 26 void addPhysicsInterface(PhysicsInterface* physicsInterface); 27 void removePhysicsInterface(PhysicsInterface* physicsInterface); 28 29 24 30 void addConnection(PhysicsConnection* connection); 25 31 void removeConnection(PhysicsConnection* connection); 26 27 28 32 29 33 void tick(float dt); … … 33 37 private: 34 38 PhysicsEngine(void); 35 static PhysicsEngine* singletonRef; 39 static PhysicsEngine* singletonRef; //!< the singleton reference of the PhysicsEngine 36 40 37 tList<PhysicsConnection>* connections; 41 tList<PhysicsInterface>* interfaces; //!< a list of physically based objects 42 tList<PhysicsConnection>* connections; //!< a list of physical connections 38 43 }; 39 44 -
orxonox/trunk/src/lib/physics/physics_interface.cc
r4377 r4392 21 21 22 22 #include "physics_interface.h" 23 #include "physics_engine.h" 23 24 24 25 #include "field.h" … … 41 42 this->massChildren = 0; 42 43 this->forceSum = Vector(0, 0, 0); 44 45 PhysicsEngine::getInstance()->addPhysicsInterface(this); 43 46 } 44 47 … … 50 53 PhysicsInterface::~PhysicsInterface () 51 54 { 52 // delete what has to be deleted here55 PhysicsEngine::getInstance()->removePhysicsInterface(this); 53 56 } 54 57 -
orxonox/trunk/src/lib/tinyxml/Makefile.in
r4276 r4392 204 204 esac; \ 205 205 done; \ 206 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/tinyxml/Makefile'; \206 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/tinyxml/Makefile'; \ 207 207 cd $(top_srcdir) && \ 208 $(AUTOMAKE) -- foreignsrc/lib/tinyxml/Makefile208 $(AUTOMAKE) --gnu src/lib/tinyxml/Makefile 209 209 .PRECIOUS: Makefile 210 210 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/Makefile.in
r4346 r4392 186 186 esac; \ 187 187 done; \ 188 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/Makefile'; \188 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/Makefile'; \ 189 189 cd $(top_srcdir) && \ 190 $(AUTOMAKE) -- foreignsrc/subprojects/Makefile190 $(AUTOMAKE) --gnu src/subprojects/Makefile 191 191 .PRECIOUS: Makefile 192 192 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/gui/Makefile.in
r4346 r4392 229 229 esac; \ 230 230 done; \ 231 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/gui/Makefile'; \231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/gui/Makefile'; \ 232 232 cd $(top_srcdir) && \ 233 $(AUTOMAKE) -- foreignsrc/subprojects/gui/Makefile233 $(AUTOMAKE) --gnu src/subprojects/gui/Makefile 234 234 .PRECIOUS: Makefile 235 235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/importer/Makefile.in
r4346 r4392 228 228 esac; \ 229 229 done; \ 230 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/importer/Makefile'; \230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/importer/Makefile'; \ 231 231 cd $(top_srcdir) && \ 232 $(AUTOMAKE) -- foreignsrc/subprojects/importer/Makefile232 $(AUTOMAKE) --gnu src/subprojects/importer/Makefile 233 233 .PRECIOUS: Makefile 234 234 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/particles/Makefile.in
r4346 r4392 257 257 esac; \ 258 258 done; \ 259 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/particles/Makefile'; \259 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/particles/Makefile'; \ 260 260 cd $(top_srcdir) && \ 261 $(AUTOMAKE) -- foreignsrc/subprojects/particles/Makefile261 $(AUTOMAKE) --gnu src/subprojects/particles/Makefile 262 262 .PRECIOUS: Makefile 263 263 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/particles/particle_fun.cc
r4385 r4392 87 87 case SDLK_i: 88 88 ParticleEngine::getInstance()->debug(); 89 PhysicsEngine::getInstance()->debug(); 89 90 break; 90 91 } -
orxonox/trunk/src/subprojects/testmain/Makefile.in
r4346 r4392 197 197 esac; \ 198 198 done; \ 199 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/testmain/Makefile'; \199 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/testmain/Makefile'; \ 200 200 cd $(top_srcdir) && \ 201 $(AUTOMAKE) -- foreignsrc/subprojects/testmain/Makefile201 $(AUTOMAKE) --gnu src/subprojects/testmain/Makefile 202 202 .PRECIOUS: Makefile 203 203 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
Note: See TracChangeset
for help on using the changeset viewer.