Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2005, 1:30:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: physicsInterfaces now check in at constuctiontime with the PhysicsEngine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/physics/physics_engine.cc

    r4381 r4392  
    3333
    3434   this->connections = new tList<PhysicsConnection>;
     35   this->interfaces = new tList<PhysicsInterface>;
    3536}
    3637
     
    5758{
    5859  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*/
     69void 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*/
     80void PhysicsEngine::removePhysicsInterface(PhysicsInterface* physicsInterface)
     81{
     82  this->interfaces->remove(physicsInterface); 
    5983}
    6084
     
    114138  PRINT(0)("====================================\n");
    115139  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());
    117142
    118143  PRINT(0)("==============================PHYS==\n");
Note: See TracChangeset for help on using the changeset viewer.