Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 8, 2012, 5:33:03 PM (13 years ago)
Author:
landauf
Message:

found some more functions to rename

File:
1 edited

Legend:

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

    r8108 r9313  
    109109            @return Returns the activation type of the Pickup.
    110110            */
    111             inline pickupActivationType::Value getActivationTypeDirect(void) const
     111            inline pickupActivationType::Value getActivationType(void) const
    112112                { return this->activationType_; }
    113113            /**
     
    115115            @return Returns the duration type of the Pickup.
    116116            */
    117             inline pickupDurationType::Value getDurationTypeDirect(void) const
     117            inline pickupDurationType::Value getDurationType(void) const
    118118                { return this->durationType_; }
    119119
    120             const std::string& getActivationType(void) const; //!< Get the activation type of the Pickup.
    121             const std::string& getDurationType(void) const; //!< Get the duration type of the Pickup.
     120            const std::string& getActivationTypeAsString(void) const; //!< Get the activation type of the Pickup.
     121            const std::string& getDurationTypeAsString(void) const; //!< Get the duration type of the Pickup.
    122122
    123123            /**
     
    126126            */
    127127            inline bool isImmediate(void) const
    128                 { return this->getActivationTypeDirect() == pickupActivationType::immediate; }
     128                { return this->getActivationType() == pickupActivationType::immediate; }
    129129            /**
    130130            @brief Get whether the activation type is 'onUse'.
     
    132132            */
    133133            inline bool isOnUse(void) const
    134                 { return this->getActivationTypeDirect() == pickupActivationType::onUse; }
     134                { return this->getActivationType() == pickupActivationType::onUse; }
    135135            /**
    136136            @brief Get whether the duration type is 'once'.
     
    138138            */
    139139            inline bool isOnce(void) const
    140                 { return this->getDurationTypeDirect() == pickupDurationType::once; }
     140                { return this->getDurationType() == pickupDurationType::once; }
    141141            /**
    142142            @brief Get whether the duration type is 'continuous'.
     
    144144            */
    145145            inline bool isContinuous(void) const
    146                 { return this->getDurationTypeDirect() == pickupDurationType::continuous; }
     146                { return this->getDurationType() == pickupDurationType::continuous; }
    147147
    148148            virtual void changedPickedUp(void); //!< Should be called when the pickup has transited from picked up to dropped or the other way around.
     
    158158            @param type The activation type of the Pickup.
    159159            */
    160             inline void setActivationTypeDirect(pickupActivationType::Value type)
     160            inline void setActivationType(pickupActivationType::Value type)
    161161                { this->activationType_ = type; }
    162162            /**
     
    164164            @param type The duration type of the Pickup.
    165165            */
    166             inline void setDurationTypeDirect(pickupDurationType::Value type)
     166            inline void setDurationType(pickupDurationType::Value type)
    167167                { this->durationType_ = type; }
    168168
    169             void setActivationType(const std::string& type); //!< Set the activation type of the Pickup.
    170             void setDurationType(const std::string& type); //!< Set the duration type of the Pickup.
     169            void setActivationTypeAsString(const std::string& type); //!< Set the activation type of the Pickup.
     170            void setDurationTypeAsString(const std::string& type); //!< Set the duration type of the Pickup.
    171171
    172172        private:
Note: See TracChangeset for help on using the changeset viewer.