Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2005, 2:05:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: PhysicsEngine is now aware of the existing fields and interfaces

File:
1 edited

Legend:

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

    r4392 r4394  
    3434   this->connections = new tList<PhysicsConnection>;
    3535   this->interfaces = new tList<PhysicsInterface>;
     36   this->fields = new tList<Field>;
    3637}
    3738
     
    8182{
    8283  this->interfaces->remove(physicsInterface); 
     84}
     85
     86/**
     87   \brief adds a Field to the list of handeled fields
     88   \param field the field to add
     89
     90   this is normally done in the constructor of any Field
     91*/
     92void PhysicsEngine::addField(Field* field)
     93{
     94  this->fields->add(field);
     95}
     96
     97/**
     98   \brief removes a Field from the list of handeled fields
     99   \param field the field to remove
     100
     101   this is normally done in the destructor of any Field
     102*/
     103void PhysicsEngine::removeField(Field* field)
     104{
     105  this->fields->remove(field);
    83106}
    84107
Note: See TracChangeset for help on using the changeset viewer.