- Timestamp:
- Mar 12, 2010, 8:56:04 AM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/items/MetaPickup.h
r6515 r6518 27 27 */ 28 28 29 #ifndef _ TestPickup_H__30 #define _ TestPickup_H__29 #ifndef _MetaPickup_H__ 30 #define _MetaPickup_H__ 31 31 32 32 #include "pickup/PickupPrereqs.h" … … 36 36 namespace orxonox { 37 37 38 namespace pickup TestType38 namespace pickupMetaType 39 39 { 40 40 enum Value … … 46 46 } 47 47 48 class _PickupExport TestPickup : public Pickup48 class _PickupExport MetaPickup : public Pickup 49 49 { 50 50 friend class PickupCarrier; 51 51 52 52 public: 53 TestPickup(BaseObject* creator);54 virtual ~ TestPickup();53 MetaPickup(BaseObject* creator); 54 virtual ~MetaPickup(); 55 55 56 56 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a HealthPickup object through XML. … … 59 59 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 60 60 61 inline pickup TestType::Value getTestTypeDirect(void)62 { return this-> testType_; }63 const std::string& get TestType(void);61 inline pickupMetaType::Value getMetaTypeDirect(void) 62 { return this->metaType_; } 63 const std::string& getMetaType(void); 64 64 65 65 protected: 66 66 void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup. 67 67 68 inline void set TestTypeDirect(pickupTestType::Value type)69 { this-> testType_ = type; }70 void set TestType(const std::string& type);68 inline void setMetaTypeDirect(pickupMetaType::Value type) 69 { this->metaType_ = type; } 70 void setMetaType(const std::string& type); 71 71 72 72 private: 73 73 void initialize(void); //!< Initializes the member variables. 74 74 75 pickup TestType::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; 79 79 80 80
Note: See TracChangeset
for help on using the changeset viewer.