Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2010, 8:56:04 AM (15 years ago)
Author:
dafrick
Message:

Renamed TestPickup to MetaPickup.

File:
1 moved

Legend:

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

    r6515 r6518  
    2727*/
    2828
    29 #ifndef _TestPickup_H__
    30 #define _TestPickup_H__
     29#ifndef _MetaPickup_H__
     30#define _MetaPickup_H__
    3131
    3232#include "pickup/PickupPrereqs.h"
     
    3636namespace orxonox {
    3737
    38     namespace pickupTestType
     38    namespace pickupMetaType
    3939    {
    4040        enum Value
     
    4646    }
    4747   
    48     class _PickupExport TestPickup : public Pickup
     48    class _PickupExport MetaPickup : public Pickup
    4949    {
    5050        friend class PickupCarrier;
    5151       
    5252        public:
    53             TestPickup(BaseObject* creator);
    54             virtual ~TestPickup();
     53            MetaPickup(BaseObject* creator);
     54            virtual ~MetaPickup();
    5555           
    5656            virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a HealthPickup object through XML.
     
    5959            virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
    6060           
    61             inline pickupTestType::Value getTestTypeDirect(void)
    62                 { return this->testType_; }
    63             const std::string& getTestType(void);
     61            inline pickupMetaType::Value getMetaTypeDirect(void)
     62                { return this->metaType_; }
     63            const std::string& getMetaType(void);
    6464           
    6565        protected:
    6666            void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup.
    6767           
    68             inline void setTestTypeDirect(pickupTestType::Value type)
    69                 { this->testType_ =  type; }
    70             void setTestType(const std::string& type);
     68            inline void setMetaTypeDirect(pickupMetaType::Value type)
     69                { this->metaType_ =  type; }
     70            void setMetaType(const std::string& type);
    7171           
    7272        private:
    7373            void initialize(void); //!< Initializes the member variables.
    7474           
    75             pickupTestType::Value testType_;
    76             static const std::string testTypeNone_s;
    77             static const std::string testTypeUse_s;
    78             static const std::string testTypeDrop_s;
     75            pickupMetaType::Value metaType_;
     76            static const std::string metaTypeNone_s;
     77            static const std::string metaTypeUse_s;
     78            static const std::string metaTypeDrop_s;
    7979           
    8080       
Note: See TracChangeset for help on using the changeset viewer.