Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 1, 2011, 7:09:29 PM (13 years ago)
Author:
landauf
Message:

Replaced COUT() with orxout() in all modules. phew.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/modules/pickup/PickupSpawner.cc

    r7801 r8811  
    9090        if(this->pickup_ == NULL)
    9191        {
    92             COUT(2) << "A PickupSpawner was created without a valid Pickupable. This won't work." << std::endl;
     92            orxout(internal_warning, context::pickups) << "A PickupSpawner was created without a valid Pickupable. This won't work." << endl;
    9393            this->setActive(false);
    9494        }
     
    144144        if(this->pickup_ == NULL)
    145145        {
    146             COUT(2) << "A PickupSpawner was created without a valid Pickupable. This won't work." << std::endl;
     146            orxout(internal_warning, context::pickups) << "A PickupSpawner was created without a valid Pickupable. This won't work." << endl;
    147147            this->setActive(false);
    148148        }
     
    239239        else
    240240        {
    241             COUT(4) << "PickupSpawner (&" << this << ") empty, selfdestruct initialized." << std::endl;
     241            orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") empty, selfdestruct initialized." << endl;
    242242            this->setActive(false);
    243243            this->destroy();
     
    264264        if(this->pickup_ != NULL)
    265265        {
    266             COUT(1) << "In PickupSpawner (&" << this << "): setPickupable called, with this->pickup_ already set." << std::endl;
     266            orxout(internal_error, context::pickups) << "In PickupSpawner (&" << this << "): setPickupable called, with this->pickup_ already set." << endl;
    267267            return;
    268268        }
    269269        if(pickup == NULL)
    270270        {
    271             COUT(1) << "In PickupSpawner (&" << this << "): Argument of setPickupable is NULL." << std::endl;
     271            orxout(internal_error, context::pickups) << "In PickupSpawner (&" << this << "): Argument of setPickupable is NULL." << endl;
    272272            return;
    273273        }
     
    298298        if(this->isActive()) // Checks whether PickupSpawner is active.
    299299        {
    300             COUT(4) << "PickupSpawner (&" << this << ") triggered and active." << std::endl;
     300            orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") triggered and active." << endl;
    301301
    302302            PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn);
     
    306306            if(!carrier->isTarget(this->pickup_))
    307307            {
    308                 COUT(4) << "PickupSpawner (&" << this << ") triggered but Pawn wasn't a target of the Pickupable." << std::endl;
     308                orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") triggered but Pawn wasn't a target of the Pickupable." << endl;
    309309                return;
    310310            }
     
    335335        if(this->spawnsRemaining_ == 0)
    336336        {
    337             COUT(1) << "Massive Error: PickupSpawner still alive until having spawned last item." << std::endl;
     337            orxout(internal_error, context::pickups) << "Massive Error: PickupSpawner still alive until having spawned last item." << endl;
    338338            return NULL;
    339339        }
     
    349349    void PickupSpawner::respawnTimerCallback()
    350350    {
    351         COUT(4) << "PickupSpawner (&" << this << ") reactivated." << std::endl;
     351        orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") reactivated." << endl;
    352352
    353353        this->setActive(true);
Note: See TracChangeset for help on using the changeset viewer.