Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2010, 12:09:10 AM (15 years ago)
Author:
dafrick
Message:

Minor cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ppspickups1/src/modules/pickup/Pickup.cc

    r6643 r6705  
    236236    /**
    237237    @brief
    238         Starts the Pickup duration Timer.
     238        Starts the pickup duration timer.
     239        After the specified durationTime has expired the function pickupTimerCallback is called.
     240        pickupTimerCallback can be overloaded and thus the desired functionality can be implemented.
     241    @param durationTime
     242        The duration after which the expires and the callback function is called.
     243    @return
     244        Returns true if the pickup duration timer was started successfully, false if not.
    239245    */
    240246    bool Pickup::startPickupTimer(float durationTime)
     
    245251            return false;
    246252        }
    247         if (false) /* TODO: Check if Timer is already running */
     253        if (this->durationTimer_.isActive()) //!< Check if Timer is already running
    248254        {
    249255            COUT(1) << "Pickup durationTimer already in use." << std::endl;
    250256            return false;
    251257        }
    252         this->durationTimer_.setTimer(durationTime, false, createExecutor(createFunctor(&Pickup::PickupTimerCallBack, this)));
     258        this->durationTimer_.setTimer(durationTime, false, createExecutor(createFunctor(&Pickup::pickupTimerCallback, this)));
    253259        return true;
    254260    }
Note: See TracChangeset for help on using the changeset viewer.