Changeset 586 for code/branches/FICN/src/orxonox/objects/WorldEntity.cc
- Timestamp:
- Dec 17, 2007, 6:16:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r583 r586 46 46 RegisterObject(WorldEntity); 47 47 48 std::cout << " 10_1\n";48 std::cout << "WE: const: 1_1\n"; 49 49 if (Orxonox::getSingleton()->getSceneManager()) 50 50 { 51 std::cout << " 10_2\n";51 std::cout << "WE: const: 1_2\n"; 52 52 std::ostringstream name; 53 53 name << (WorldEntity::worldEntityCounter_s++); 54 54 this->setName("WorldEntity" + name.str()); 55 //node_ = Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->createChildSceneNode(this->getName());56 std::cout << " blubbbi: " << this->getName() << " .." << this->node_ << std::endl;55 node_ = Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->createChildSceneNode(this->getName()); 56 std::cout << "WE: const: name: " << this->getName() << ", node: " << this->node_ << std::endl; 57 57 } 58 std::cout << " 10_3\n";58 std::cout << "WE: const: 1_3\n"; 59 59 60 60 this->bStatic_ = true; … … 84 84 void WorldEntity::loadParams(TiXmlElement* xmlElem) 85 85 { 86 std::cout << "### START PARSING WE" << std::endl; 86 87 BaseObject::loadParams(xmlElem); 87 88 88 std::cout << " 1\n";89 std::cout << "WE: 1\n"; 89 90 if (xmlElem->Attribute("name")) 90 91 { 91 std::cout << " 2\n";92 std::cout << "WE: 2\n"; 92 93 this->setName(xmlElem->Attribute("mesh")); 93 94 } 94 std::cout << " 3\n";95 std::cout << "WE: 3\n"; 95 96 if (xmlElem->Attribute("position")) 96 97 { 97 std::cout << " 4\n";98 std::cout << "WE: 4\n"; 98 99 std::vector<std::string> pos = tokenize(xmlElem->Attribute("position"),","); 99 100 float x, y, z; … … 103 104 this->setPosition(x, y, z); 104 105 } 105 std::cout << " 5\n";106 std::cout << "WE: 5\n"; 106 107 if (xmlElem->Attribute("direction")) 107 108 { 108 std::cout << " 6\n";109 std::cout << "WE: 6\n"; 109 110 std::vector<std::string> pos = tokenize(xmlElem->Attribute("direction"),","); 110 111 float x, y, z; … … 114 115 this->setDirection(x, y, z); 115 116 } 116 std::cout << " 7\n";117 std::cout << "WE: 7\n"; 117 118 if (xmlElem->Attribute("scale")) 118 119 { 119 std::cout << " 8\n";120 std::cout << "WE: 8\n"; 120 121 std::string scaleStr = xmlElem->Attribute("scale"); 121 122 float scale; … … 123 124 this->setScale(scale); 124 125 } 125 std::cout << "9\n"; 126 std::cout << "WE: 9\n"; 127 std::cout << "### FINISHED PARSING WE" << std::endl; 126 128 } 127 129
Note: See TracChangeset
for help on using the changeset viewer.