Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 7:14:41 PM (16 years ago)
Author:
landauf
Message:

finally found the damn fkng bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/WorldEntity.cc

    r586 r589  
    4646        RegisterObject(WorldEntity);
    4747
    48         std::cout << "WE: const: 1_1\n";
    4948        if (Orxonox::getSingleton()->getSceneManager())
    5049        {
    51         std::cout << "WE: const: 1_2\n";
    5250            std::ostringstream name;
    5351            name << (WorldEntity::worldEntityCounter_s++);
    5452            this->setName("WorldEntity" + name.str());
    5553            node_ = Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->createChildSceneNode(this->getName());
    56             std::cout << "WE: const: name: " << this->getName() << ", node: " << this->node_ << std::endl;
    5754        }
    58         std::cout << "WE: const: 1_3\n";
    5955
    6056        this->bStatic_ = true;
     
    8480    void WorldEntity::loadParams(TiXmlElement* xmlElem)
    8581    {
    86 std::cout << "### START PARSING WE" << std::endl;
    8782        BaseObject::loadParams(xmlElem);
    8883
    89         std::cout << "WE: 1\n";
    9084        if (xmlElem->Attribute("name"))
    9185        {
    92         std::cout << "WE: 2\n";
    9386                this->setName(xmlElem->Attribute("mesh"));
    9487        }
    95         std::cout << "WE: 3\n";
     88
    9689        if (xmlElem->Attribute("position"))
    9790        {
    98         std::cout << "WE: 4\n";
    9991                std::vector<std::string> pos = tokenize(xmlElem->Attribute("position"),",");
    10092                float x, y, z;
     
    10496                this->setPosition(x, y, z);
    10597        }
    106         std::cout << "WE: 5\n";
     98
    10799        if (xmlElem->Attribute("direction"))
    108100        {
    109         std::cout << "WE: 6\n";
    110101                std::vector<std::string> pos = tokenize(xmlElem->Attribute("direction"),",");
    111102                float x, y, z;
     
    115106                this->setDirection(x, y, z);
    116107        }
    117         std::cout << "WE: 7\n";
     108
    118109        if (xmlElem->Attribute("scale"))
    119110        {
    120         std::cout << "WE: 8\n";
    121111                    std::string scaleStr = xmlElem->Attribute("scale");
    122112                    float scale;
     
    124114                    this->setScale(scale);
    125115        }
    126         std::cout << "WE: 9\n";
    127 std::cout << "### FINISHED PARSING WE" << std::endl;
    128116    }
    129117
Note: See TracChangeset for help on using the changeset viewer.