Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2010, 12:37:09 PM (14 years ago)
Author:
dafrick
Message:

Documenting and cleanup.

File:
1 edited

Legend:

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

    r7533 r7547  
    4242namespace orxonox {
    4343
    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    */
    4550    namespace pickupMetaType
    4651    {
    4752        enum Value
    4853        {
    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".
    5459        };
    5560    }
     
    5762    /**
    5863    @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
    6482    @author
    6583        Damian 'Mozork' Frick
     84
     85    @ingroup PickupItems
    6686    */
    6787    class _PickupExport MetaPickup : public Pickup
     
    81101            @return Returns an enum with the meta type of the MetaPickup.
    82102            */
    83             inline pickupMetaType::Value getMetaTypeDirect(void)
     103            inline pickupMetaType::Value getMetaTypeDirect(void) const
    84104                { 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.
    86106
    87107        protected:
Note: See TracChangeset for help on using the changeset viewer.