Changeset 7547 for code/trunk/src/modules/pickup/items/MetaPickup.h
- Timestamp:
- Oct 16, 2010, 12:37:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/MetaPickup.h
r7533 r7547 42 42 namespace orxonox { 43 43 44 //! The meta type, deciding what the pickup does exactly. 44 /** 45 @brief 46 The meta type, specifying what the @ref orxonox::MetaPickup "MetaPickup" does exactly. 47 48 @ingroup PickupItems 49 */ 45 50 namespace pickupMetaType 46 51 { 47 52 enum Value 48 53 { 49 none, 50 use, 51 drop, 52 destroy, 53 destroyCarrier 54 none, //!< The @ref orxonox::MetaPickup "MetaPickup" does nothing. 55 use, //!< The @ref orxonox::MetaPickup "MetaPickup" uses all the @ref orxonox::PickupCarrier "PickupCarriers'" @ref orxonox::Pickupable "Pickupables". 56 drop, //!< The @ref orxonox::MetaPickup "MetaPickup" drops all the @ref orxonox::PickupCarrier "PickupCarriers'" @ref orxonox::Pickupable "Pickupables". 57 destroy, //!< The @ref orxonox::MetaPickup "MetaPickup" destroys all the @ref orxonox::PickupCarrier "PickupCarriers'" @ref orxonox::Pickupable "Pickupables". 58 destroyCarrier //!< The @ref orxonox::MetaPickup "MetaPickup" destroys the @ref orxonox::PickupCarrier "PickupCarrier". 54 59 }; 55 60 } … … 57 62 /** 58 63 @brief 59 The MetaPickup is a pickup that can, depending on the parameter 'metaType', do different things. If the 'metaType' is set to 60 - @b use All the pickups, the PickupCarrier has, are immediately set to used upon pickup of the MetaPickup. 61 - @b drop All the pickups, the PickupCarrier has, are immediately dropped upon pickup of the MetaPickup. 62 - @b destroy All the pickups, the PickupCarrier has, are immediately destroyed upon pickup of the MetaPickup. 63 - @b destroyCarrier The PickupCarrier is immediately destroyed upon pickup of the MetaPickup. 64 The MetaPickup is a Pickupable that can, depending on the parameter <em>metaTye</em>, do different things. If the <em>metaTye</em> is set to 65 - @b use All the @ref orxonox::Pickupable "Pickupables", the PickupCarrier has, are immediately set to used upon using the MetaPickup. 66 - @b drop All the @ref orxonox::Pickupable "Pickupables", the PickupCarrier has, are immediately dropped upon using the MetaPickup. 67 - @b destroy All the @ref orxonox::Pickupable "Pickupables", the PickupCarrier has, are immediately destroyed upon using the MetaPickup. 68 - @b destroyCarrier The PickupCarrier is immediately destroyed upon using the MetaPickup. 69 70 The default value is <em>none</em>, which basically does nothing. 71 72 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. 73 74 An example of a XML implementation of a MetaPickup would be: 75 @code 76 <MetaPickup 77 activationType = "immediate" 78 metaType = "use" 79 /> 80 @endcode 81 64 82 @author 65 83 Damian 'Mozork' Frick 84 85 @ingroup PickupItems 66 86 */ 67 87 class _PickupExport MetaPickup : public Pickup … … 81 101 @return Returns an enum with the meta type of the MetaPickup. 82 102 */ 83 inline pickupMetaType::Value getMetaTypeDirect(void) 103 inline pickupMetaType::Value getMetaTypeDirect(void) const 84 104 { return this->metaType_; } 85 const std::string& getMetaType(void) ; //!< Get the meta type of this MetaPickup.105 const std::string& getMetaType(void) const; //!< Get the meta type of this MetaPickup. 86 106 87 107 protected:
Note: See TracChangeset
for help on using the changeset viewer.