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