Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 3:20:46 AM (16 years ago)
Author:
landauf
Message:
  • changed output from std::cout to COUT(level)
  • added SoftDebugLevel config-variable (its a hack, but it works fine)
File:
1 edited

Legend:

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

    r531 r560  
    66#include "../../misc/Tokenizer.h"
    77#include "../../misc/String2Number.h"
     8#include "../core/Debug.h"
    89
    910#include "Entity.h"
     
    2526    {
    2627        Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
    27        
     28
    2829        if (xmlElem->Attribute("name") && xmlElem->Attribute("src") && xmlElem->Attribute("node"))
    2930        {
     
    3132                std::string src = xmlElem->Attribute("src");
    3233                std::string node = xmlElem->Attribute("node");
    33                        
     34
    3435                        Ogre::Entity* entity = mgr->createEntity(name, src);
    3536
     
    3738                    sceneNode->attachObject((Ogre::MovableObject*)entity);
    3839
    39                 std::cout << "Loader: Created entity "<< name <<" with source " << src  << " at node " << node  << std::endl << std::endl;
    40         }       
     40                COUT(4) << "Loader: Created entity "<< name <<" with source " << src  << " at node " << node  << std::endl << std::endl;
     41        }
    4142   }
    42    
     43
    4344}
Note: See TracChangeset for help on using the changeset viewer.