Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:26:46 PM (11 years ago)
Author:
landauf
Message:

BaseObject now requires a Context instead of a creator (BaseObject*) in its constructor.
Namespace, Level, and Scene inherit from Context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/BaseObject.cc

    r9590 r9629  
    5555        @brief Constructor: Registers the object in the BaseObject-list.
    5656    */
    57     BaseObject::BaseObject(BaseObject* creator) : bInitialized_(false)
     57    BaseObject::BaseObject(Context* context) : bInitialized_(false)
    5858    {
    5959        RegisterRootObject(BaseObject);
     
    7070        this->mainStateFunctor_ = 0;
    7171
     72        if (context)
     73            this->setContext(context);
     74
     75        BaseObject* creator = orxonox_cast<BaseObject*>(context);
    7276        this->setCreator(creator);
    7377        if (this->creator_)
     
    201205        {
    202206            this->networkTemplateNames_.insert(temp->getLink());
    203            
     207
    204208            Template* link;
    205209            assert(!(link = Template::getTemplate(temp->getLink())) || !link->isLink());
Note: See TracChangeset for help on using the changeset viewer.