Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 1, 2011, 4:37:38 PM (13 years ago)
Author:
landauf
Message:

Replaced COUT() with orxout() in tools and orxonox library. Requires quite some fine-tuning.

Location:
code/branches/output/src/orxonox/gamestates
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/orxonox/gamestates/GSLevel.cc

    r8729 r8809  
    155155
    156156        // call the loader
    157         COUT(0) << "Loading level..." << std::endl;
     157        orxout(user_status) << "Loading level..." << endl;
    158158        startFile_ = new XMLFile(LevelManager::getInstance().getDefaultLevel());
    159159        bool loaded = Loader::open(startFile_);
     
    169169        delete startFile_;
    170170
    171         COUT(3) << "Unloaded level. Remaining objects:" << std::endl;
     171        orxout(user_status) << "Unloaded level" << endl;
     172        orxout(internal_info) << "Remaining objects:" << endl;
    172173        unsigned int i = 0;
    173174        for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it)
     
    176177            if (find == this->staticObjects_.end())
    177178            {
    178                 COUT(3) << ++i << ": " << it->getIdentifier()->getName() << " (" << *it << "), references: " << it->getReferenceCount() << std::endl;
     179                orxout(internal_info) << ++i << ": " << it->getIdentifier()->getName() << " (" << *it << "), references: " << it->getReferenceCount() << endl;
    179180            }
    180181        }
    181         COUT(3) << i << " objects remaining.";
     182        orxout(internal_info) << i << " objects remaining.";
    182183        if (i == 0)
    183             COUT(3) << " Well done!" << std::endl;
     184            orxout(internal_info) << " Well done!" << endl;
    184185        else
    185             COUT(3) << " Try harder!" << std::endl;
     186            orxout(internal_info) << " Try harder!" << endl;
    186187    }
    187188
  • code/branches/output/src/orxonox/gamestates/GSMasterServer.cc

    r8788 r8809  
    5454
    5555    this->mserver = new MasterServer();
    56     COUT(0) << "Loading masterserver mode" << std::endl;
     56    orxout(user_status) << "Loading masterserver mode" << endl;
    5757
    5858    this->mserver->run();
  • code/branches/output/src/orxonox/gamestates/GSRoot.cc

    r8706 r8809  
    7777        {
    7878            if (dynamic_cast<Synchronisable*>(*it))
    79                 COUT(0) << "object: " << it->getIdentifier()->getName() << " id: " << dynamic_cast<Synchronisable*>(*it)->getObjectID() << std::endl;
     79                orxout(debug_output) << "object: " << it->getIdentifier()->getName() << " id: " << dynamic_cast<Synchronisable*>(*it)->getObjectID() << endl;
    8080            else
    81                 COUT(0) << "object: " << it->getIdentifier()->getName() << std::endl;
     81                orxout(debug_output) << "object: " << it->getIdentifier()->getName() << endl;
    8282            nr++;
    8383        }
    84         COUT(0) << "currently got " << nr << " objects" << std::endl;
     84        orxout(debug_output) << "currently got " << nr << " objects" << endl;
    8585    }
    8686
  • code/branches/output/src/orxonox/gamestates/GSServer.cc

    r8788 r8809  
    5757
    5858        this->server_ = new Server(CommandLineParser::getValue("port"));
    59         COUT(0) << "Loading scene in server mode" << std::endl;
     59        orxout(user_status) << "Loading scene in server mode" << endl;
    6060
    6161        server_->open();
Note: See TracChangeset for help on using the changeset viewer.