Changeset 5839 for code/branches/core5/src/libraries/core
- Timestamp:
- Sep 30, 2009, 12:42:28 PM (16 years ago)
- Location:
- code/branches/core5/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/BaseObject.cc
r5821 r5839 46 46 #include "XMLNameListener.h" 47 47 #include "XMLPort.h" 48 #include "network/NetworkPrereqs.h" 48 49 49 50 namespace orxonox … … 74 75 this->setFile(this->creator_->getFile()); 75 76 this->setNamespace(this->creator_->getNamespace()); 76 this->setScene(this->creator_->getScene() );77 this->setScene(this->creator_->getScene(), this->creator_->getSceneID()); 77 78 this->setGametype(this->creator_->getGametype()); 78 79 } … … 82 83 this->namespace_ = 0; 83 84 this->scene_ = 0; 85 this->sceneID_ = OBJECTID_UNKNOWN; 84 86 this->gametype_ = 0; 85 87 } -
code/branches/core5/src/libraries/core/BaseObject.h
r5829 r5839 135 135 inline BaseObject* getCreator() const { return this->creator_; } 136 136 137 inline void setScene(const SmartPtr<Scene>& scene ) { this->scene_ = scene; }137 inline void setScene(const SmartPtr<Scene>& scene, uint32_t sceneID) { this->scene_ = scene; this->sceneID_=sceneID; } 138 138 inline const SmartPtr<Scene>& getScene() const { return this->scene_; } 139 inline virtual uint32_t getSceneID() const { return this->sceneID_; } 139 140 140 141 inline void setGametype(const SmartPtr<Gametype>& gametype) … … 202 203 std::list<BaseObject*> events_; 203 204 std::map<std::string, EventContainer*> eventContainers_; 205 uint32_t sceneID_; 204 206 }; 205 207
Note: See TracChangeset
for help on using the changeset viewer.