Changeset 974
- Timestamp:
- Apr 3, 2008, 12:52:48 PM (17 years ago)
- Location:
- code/branches/network
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Model.cc
r927 r974 84 84 85 85 bool Model::create(){ 86 WorldEntity::create(); 86 if(!WorldEntity::create()) 87 return false; 87 88 if(meshSrc_.compare("")!=0){ 88 89 this->mesh_.setMesh(meshSrc_); -
code/branches/network/src/orxonox/objects/Skybox.cc
r871 r974 49 49 { 50 50 RegisterObject(Skybox); 51 registerAllVariables(); 51 52 } 52 53 … … 59 60 if (xmlElem->Attribute("src")) 60 61 { 61 s td::string skyboxSrc= xmlElem->Attribute("src");62 this->setSkybox(skyboxSrc);62 skyboxSrc_ = xmlElem->Attribute("src"); 63 this->create(); 63 64 64 COUT(4) << "Loader: Set skybox: "<< skyboxSrc << std::endl << std::endl;65 COUT(4) << "Loader: Set skybox: "<< skyboxSrc_ << std::endl << std::endl; 65 66 } 66 67 } … … 83 84 XMLPortParamLoadOnly(Skybox, "src", setSkybox, xmlelement, loading); 84 85 } 86 87 bool Skybox::create(){ 88 this->setSkybox(skyboxSrc_); 89 return true; 90 } 91 92 void Skybox::registerAllVariables(){ 93 registerVar(&skyboxSrc_, skyboxSrc_.length()+1 ,network::STRING); 94 } 95 85 96 } -
code/branches/network/src/orxonox/objects/Skybox.h
r871 r974 5 5 6 6 #include "core/BaseObject.h" 7 #include "network/Synchronisable.h" 7 8 8 9 class TiXmlElement; // Forward declaration … … 10 11 namespace orxonox 11 12 { 12 class _OrxonoxExport Skybox : public BaseObject 13 class _OrxonoxExport Skybox : public BaseObject, public network::Synchronisable 13 14 { 14 15 public: … … 19 20 virtual void XMLPort(Element& xmlelement, bool loading); 20 21 void setSkybox(const std::string& skyboxname); 22 23 bool create(); 24 void registerAllVariables(); 21 25 22 26 private: 27 std::string skyboxSrc_; 23 28 24 29 -
code/branches/network/src/orxonox/objects/WorldEntity.cc
r927 r974 72 72 } 73 73 } 74 74 75 75 76 WorldEntity::~WorldEntity() … … 162 163 */ 163 164 } 165 164 166 165 167 void WorldEntity::setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll)
Note: See TracChangeset
for help on using the changeset viewer.