Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 24, 2010, 9:49:54 AM (14 years ago)
Author:
dafrick
Message:

Removed Timer from Pickup, as this is no his core functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/Pickup.h

    r7163 r7208  
    133133            virtual bool createSpawner(void); //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
    134134
    135             bool startPickupTimer(float durationTime); //!< Starts the pickup duration timer.
    136             /**
    137             @brief Get your Timer.
    138             @return Returns a pointer to the Timer.
    139             */
    140             inline Timer* getTimer(void)
    141                 { return &this->durationTimer_; }
    142 
    143             /**
    144             @brief The callback method for the Timer.
    145                    Can be overloaded to implement desired functionality.
    146             */
    147             virtual void pickupTimerCallback(void) {}
    148 
    149135            /**
    150136            @brief Set the activation type of the pickup.
     
    166152            void initialize(void); //!< Initializes the member variables.
    167153
    168             //TODO: Problems, when there are more Timers needed? Solutions?
    169             Timer durationTimer_; //!< Timer at the disposal of each Class implementing Pickup.
    170 
    171154            pickupActivationType::Value activationType_; //!< The activation type of the Pickup.
    172155            pickupDurationType::Value durationType_; //!< The duration type of the pickup.
Note: See TracChangeset for help on using the changeset viewer.