Changeset 9667 for code/trunk/src/libraries/core/BaseObject.cc
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/BaseObject.cc
r8858 r9667 39 39 #include "Event.h" 40 40 #include "EventIncludes.h" 41 #include "Iterator.h"42 41 #include "Template.h" 43 42 #include "XMLFile.h" … … 45 44 #include "XMLPort.h" 46 45 #include "command/Functor.h" 46 #include "object/Iterator.h" 47 48 #include "class/OrxonoxInterface.h" // we include this only to include OrxonoxInterface.h at least once in core to keep MSVC happy... 47 49 48 50 namespace orxonox 49 51 { 50 CreateFactory(BaseObject);52 RegisterClass(BaseObject); 51 53 52 54 /** 53 55 @brief Constructor: Registers the object in the BaseObject-list. 54 56 */ 55 BaseObject::BaseObject( BaseObject* creator) : bInitialized_(false)56 { 57 Register RootObject(BaseObject);57 BaseObject::BaseObject(Context* context) : bInitialized_(false) 58 { 59 RegisterObject(BaseObject); 58 60 59 61 this->bInitialized_ = true; … … 68 70 this->mainStateFunctor_ = 0; 69 71 72 if (context) 73 this->setContext(context); 74 75 BaseObject* creator = orxonox_cast<BaseObject*>(context); 70 76 this->setCreator(creator); 71 77 if (this->creator_) … … 199 205 { 200 206 this->networkTemplateNames_.insert(temp->getLink()); 201 207 202 208 Template* link; 203 209 assert(!(link = Template::getTemplate(temp->getLink())) || !link->isLink());
Note: See TracChangeset
for help on using the changeset viewer.