Changeset 5806 for code/branches/core5/src/libraries/core
- Timestamp:
- Sep 27, 2009, 4:13:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/BaseObject.h
r5805 r5806 138 138 inline const SmartPtr<Scene>& getScene() const { return this->scene_; } 139 139 140 inline void setGametype( Gametype*gametype)140 inline void setGametype(const SmartPtr<Gametype>& gametype) 141 141 { 142 142 if (gametype != this->gametype_) … … 147 147 } 148 148 } 149 inline Gametype*getGametype() const { return this->gametype_; }149 inline const SmartPtr<Gametype>& getGametype() const { return this->gametype_; } 150 150 inline Gametype* getOldGametype() const { return this->oldGametype_; } 151 151 virtual void changedGametype() {} … … 196 196 BaseObject* creator_; 197 197 SmartPtr<Scene> scene_; 198 Gametype*gametype_;198 SmartPtr<Gametype> gametype_; 199 199 Gametype* oldGametype_; 200 200 std::set<Template*> templates_;
Note: See TracChangeset
for help on using the changeset viewer.