Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 8, 2012, 5:26:04 PM (12 years ago)
Author:
landauf
Message:

renamed some functions where enums are converted to/from strings for XMLPort to make it more obvious where the value is actually set and where it is only converted

File:
1 edited

Legend:

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

    r7547 r9312  
    6969
    7070        The default value is <em>none</em>, which basically does nothing.
    71        
     71
    7272        The parameter <b>activation type</b> can be used to specify, whether the MetaPickup is used upon pickup (<em>immediate</em>) or not (<em>onUse</em>). With <em>immediate</em> being the default.
    7373
     
    101101            @return Returns an enum with the meta type of the MetaPickup.
    102102            */
    103             inline pickupMetaType::Value getMetaTypeDirect(void) const
     103            inline pickupMetaType::Value getMetaType(void) const
    104104                { return this->metaType_; }
    105             const std::string& getMetaType(void) const; //!< Get the meta type of this MetaPickup.
     105            const std::string& getMetaTypeAsString(void) const; //!< Get the meta type of this MetaPickup.
    106106
    107107        protected:
     
    112112            @param type The meta type as an enum.
    113113            */
    114             inline void setMetaTypeDirect(pickupMetaType::Value type)
     114            inline void setMetaType(pickupMetaType::Value type)
    115115                { this->metaType_ =  type; }
    116             void setMetaType(const std::string& type); //!< Set the meta type of this MetaPickup.
     116            void setMetaTypeAsString(const std::string& type); //!< Set the meta type of this MetaPickup.
    117117
    118118        private:
Note: See TracChangeset for help on using the changeset viewer.