Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 10:53:51 PM (16 years ago)
Author:
landauf
Message:
  • added feature to add a callback function to configvalues. they get called if the value changes. an examples is in Core.cc.
  • changed the SetConfigValue macro and the Identifier::updateConfigValues() function to work properly with inherited classes in both possible cases: 1) they overwrite the config-value or 2) they don't. an example is ParticleProjectile that defines it's own speed_ configvalue.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/core/Identifier.cc

    r1592 r1596  
    3939#include "ConsoleCommand.h"
    4040#include "CommandExecutor.h"
    41 #include "Iterator.h"
    42 #include "ObjectList.h"
    43 #include "OrxonoxClass.h"
    4441#include "XMLPort.h"
    4542
     
    198195
    199196    /**
    200         @brief Updates the config-values of all existing objects of this class by calling their setConfigValues() function.
    201     */
    202     void Identifier::updateConfigValues() const
    203     {
    204         for (BaseIterator it = this->getObjects()->begin(); it; ++it)
    205             (*it)->setConfigValues();
    206     }
    207 
    208     /**
    209197        @brief Tells the container to which Identifier it belongs to.
    210198    */
Note: See TracChangeset for help on using the changeset viewer.