Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 9:24:33 AM (14 years ago)
Author:
dafrick
Message:

Updated pickups level and template and include file to properly include the DronePickup.
Additionally adjusted the level of output generated by the PickupSpawner.

File:
1 edited

Legend:

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

    r6711 r7038  
    223223        else
    224224        {
    225             COUT(3) << "PickupSpawner empty, selfdestruct initialized." << std::endl;
     225            COUT(4) << "PickupSpawner (&" << this << ") empty, selfdestruct initialized." << std::endl;
    226226            this->setActive(false);
    227227            this->destroy();
     
    248248        if(this->pickup_ != NULL)
    249249        {
    250             COUT(1) << "In PickupSpawner: setPickupable called, with this->pickup_ already set." << std::endl;
     250            COUT(1) << "In PickupSpawner (&" << this << "): setPickupable called, with this->pickup_ already set." << std::endl;
    251251            return;
    252252        }
    253253        if(pickup == NULL)
    254254        {
    255             COUT(1) << "In PickupSpawner: Argument of setPickupable is NULL." << std::endl;
     255            COUT(1) << "In PickupSpawner (&" << this << "): Argument of setPickupable is NULL." << std::endl;
    256256            return;
    257257        }
     
    282282        if (this->isActive()) //!< Checks whether PickupSpawner is active.
    283283        {
    284             COUT(3) << "PickupSpawner triggered and active." << std::endl;
     284            COUT(4) << "PickupSpawner (&" << this << ") triggered and active." << std::endl;
    285285           
    286286            PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn);
     
    293293            if(!carrier->isTarget(this->pickup_))
    294294            {
    295                 COUT(4) << "PickupSpawner triggered but Pawn wasn't a target of the Pickupable." << std::endl;
     295                COUT(4) << "PickupSpawner (&" << this << ") triggered but Pawn wasn't a target of the Pickupable." << std::endl;
    296296                return;
    297297            }
     
    314314            {
    315315                if(target == NULL)
    316                     COUT(1) << "PickupSpawner: Pickupable has no target." << std::endl;
     316                    COUT(1) << "PickupSpawner (&" << this << "): Pickupable has no target." << std::endl;
    317317               
    318318                if(pickup == NULL)
    319319                {
    320                     COUT(1) << "PickupSpawner: getPickup produced an error, no Pickupable created." << std::endl;
     320                    COUT(1) << "PickupSpawner (&" << this << "): getPickup produced an error, no Pickupable created." << std::endl;
    321321                }
    322322                else
     
    352352    void PickupSpawner::respawnTimerCallback()
    353353    {
    354         COUT(3) << "PickupSpawner reactivated." << std::endl;
     354        COUT(4) << "PickupSpawner (&" << this << ") reactivated." << std::endl;
    355355
    356356        this->setActive(true);
Note: See TracChangeset for help on using the changeset viewer.