Changeset 10555 for code/branches/core7/src/libraries/core/BaseObject.h
- Timestamp:
- Aug 29, 2015, 5:35:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/BaseObject.h
r10298 r10555 51 51 #include "class/OrxonoxClass.h" 52 52 #include "class/Super.h" 53 #include "object/S martPtr.h"53 #include "object/StrongPtr.h" 54 54 55 55 namespace orxonox … … 138 138 { return this->templates_; } 139 139 140 inline void setNamespace(const S martPtr<Namespace>& ns) { this->namespace_ = ns; }141 inline const S martPtr<Namespace>& getNamespace() const { return this->namespace_; }140 inline void setNamespace(const StrongPtr<Namespace>& ns) { this->namespace_ = ns; } 141 inline const StrongPtr<Namespace>& getNamespace() const { return this->namespace_; } 142 142 143 143 inline void setCreator(BaseObject* creator) { this->creator_ = creator; } 144 144 inline BaseObject* getCreator() const { return this->creator_; } 145 145 146 inline void setScene(const S martPtr<Scene>& scene, uint32_t sceneID) { this->scene_ = scene; this->sceneID_=sceneID; }147 inline const S martPtr<Scene>& getScene() const { return this->scene_; }146 inline void setScene(const StrongPtr<Scene>& scene, uint32_t sceneID) { this->scene_ = scene; this->sceneID_=sceneID; } 147 inline const StrongPtr<Scene>& getScene() const { return this->scene_; } 148 148 inline virtual uint32_t getSceneID() const { return this->sceneID_; } 149 149 150 inline void setGametype(const S martPtr<Gametype>& gametype)150 inline void setGametype(const StrongPtr<Gametype>& gametype) 151 151 { 152 152 if (gametype != this->gametype_) … … 157 157 } 158 158 } 159 inline const S martPtr<Gametype>& getGametype() const { return this->gametype_; }159 inline const StrongPtr<Gametype>& getGametype() const { return this->gametype_; } 160 160 inline Gametype* getOldGametype() const { return this->oldGametype_; } 161 161 virtual void changedGametype() {} 162 162 163 inline void setLevel(const S martPtr<Level>& level)163 inline void setLevel(const StrongPtr<Level>& level) 164 164 { 165 165 if (level != this->level_) … … 169 169 } 170 170 } 171 inline const S martPtr<Level>& getLevel() const { return this->level_; }171 inline const StrongPtr<Level>& getLevel() const { return this->level_; } 172 172 virtual void changedLevel() {} 173 173 … … 222 222 std::map<std::string, std::string> xmlAttributes_; //!< Lowercase XML attributes 223 223 std::string loaderIndentation_; //!< Indentation of the debug output in the Loader 224 S martPtr<Namespace>namespace_;224 StrongPtr<Namespace> namespace_; 225 225 BaseObject* creator_; 226 S martPtr<Scene>scene_;226 StrongPtr<Scene> scene_; 227 227 uint32_t sceneID_; 228 S martPtr<Gametype>gametype_;228 StrongPtr<Gametype> gametype_; 229 229 Gametype* oldGametype_; 230 S martPtr<Level>level_;230 StrongPtr<Level> level_; 231 231 std::set<Template*> templates_; 232 232
Note: See TracChangeset
for help on using the changeset viewer.