- Timestamp:
- Jun 9, 2010, 9:32:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/pickup/items/MetaPickup.h
r6709 r7127 51 51 }; 52 52 } 53 53 54 54 /** 55 55 @brief … … 60 60 class _PickupExport MetaPickup : public Pickup 61 61 { 62 62 63 63 public: 64 64 MetaPickup(BaseObject* creator); //!< Constructor. Registers and initializes the object. 65 65 virtual ~MetaPickup(); //!< Destructor. 66 66 67 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 72 /** 73 73 @brief Returns the meta type of the MetaPickup. … … 77 77 { return this->metaType_; } 78 78 const std::string& getMetaType(void); //!< Get the meta type of this MetaPickup. 79 79 80 80 protected: 81 81 void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup. 82 82 83 83 /** 84 84 @brief Set the meta type of the MetaPickup. … … 88 88 { this->metaType_ = type; } 89 89 void setMetaType(const std::string& type); //!< Set the meta type of this MetaPickup. 90 90 91 91 private: 92 92 void initialize(void); //!< Initializes the member variables. 93 93 94 94 pickupMetaType::Value metaType_; //!< The meta type of the MetaPickup, determines which actions are taken. 95 95 96 96 //! Static strings for the meta types. 97 97 static const std::string metaTypeNone_s; 98 98 static const std::string metaTypeUse_s; 99 99 static const std::string metaTypeDrop_s; 100 101 100 101 102 102 }; 103 103
Note: See TracChangeset
for help on using the changeset viewer.