Changeset 6538 for code/trunk/src/modules/pickup/items/MetaPickup.h
- Timestamp:
- Mar 16, 2010, 6:15:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/MetaPickup.h
r6524 r6538 28 28 29 29 /** 30 @file 30 @file MetaPickup.h 31 31 @brief Definition of the MetaPickup class. 32 32 */ … … 62 62 63 63 public: 64 MetaPickup(BaseObject* creator); 65 virtual ~MetaPickup(); 64 MetaPickup(BaseObject* creator); //!< Constructor. Registers and initializes the object. 65 virtual ~MetaPickup(); //!< Destructor. 66 66 67 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a HealthPickup object through XML.67 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a MetaPickup object through XML. 68 68 69 69 virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. 70 70 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 71 71 72 /** 73 @brief Returns the meta type of the MetaPickup. 74 @return Returns an enum with the meta type of the MetaPickup. 75 */ 72 76 inline pickupMetaType::Value getMetaTypeDirect(void) 73 77 { return this->metaType_; } 74 const std::string& getMetaType(void); 78 const std::string& getMetaType(void); //!< Get the meta type of this MetaPickup. 75 79 76 80 protected: 81 void initialize(void); //!< Initializes the object. 77 82 void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup. 78 83 84 /** 85 @brief Set the meta type of the MetaPickup. 86 @param type The meta type as an enum. 87 */ 79 88 inline void setMetaTypeDirect(pickupMetaType::Value type) 80 89 { this->metaType_ = type; } 81 void setMetaType(const std::string& type); 90 void setMetaType(const std::string& type); //!< Set the meta type of this MetaPickup. 82 91 83 92 private: 84 93 void initialize(void); //!< Initializes the member variables. 85 94 86 pickupMetaType::Value metaType_; 95 pickupMetaType::Value metaType_; //!< The meta type of the MetaPickup, determines which actions are taken. 96 97 //! Static strings for the meta types. 87 98 static const std::string metaTypeNone_s; 88 99 static const std::string metaTypeUse_s;
Note: See TracChangeset
for help on using the changeset viewer.