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/orxonox/interfaces/Pickupable.h

    r7504 r7547  
    5151        An Interface (or more precisely an abstract class) to model and represent different (all kinds of) pickups.
    5252
    53         Pickups (@ref orxonox:Pickupable "Pickupables") are objects that (quite unsurprisingly) can be picked up. Additionally they can be used and unused (transition from used to not used), and also dropped.
     53        Pickups (@ref orxonox::Pickupable "Pickupables") are objects that (quite unsurprisingly) can be picked up. Additionally they can be used and unused (transition from used to not used), and also dropped.
    5454
    5555        A class of Pickups can incorporate many different types of pickups (see @ref orxonox::PickupIdentifier "PickupIdentifier"), each type is uniquely defined by a @ref orxonox::PickupIdentifier "PickupIdentifier". Each pickup has such an identifier identiying its type. This means that two pickups of the same type have identifiers which are equal.
     
    5757    @author
    5858        Damian 'Mozork' Frick
     59
     60    @ingroup Pickup
    5961    */
    6062    class _OrxonoxExport Pickupable : virtual public OrxonoxClass, public Rewardable
     
    7072            @return Returns true if the Pickupable is currently in use.
    7173            */
    72             inline bool isUsed(void)
     74            inline bool isUsed(void) const
    7375                { return this->used_; }
    7476            /**
     
    9496            @return Returns true if the Pickupable is currently picked up, false if not.
    9597            */
    96             inline bool isPickedUp(void)
     98            inline bool isPickedUp(void) const
    9799                { return this->pickedUp_; }
    98100            /**
     
    106108            @return Returns true if it can be used.
    107109            */
    108             inline bool isUsable(void)
     110            inline bool isUsable(void) const
    109111                { return this->enabled_; }
    110112
     
    113115            @return Returns true if it can be unused.
    114116            */
    115             inline bool isUnusable(void)
     117            inline bool isUnusable(void) const
    116118                { return this->enabled_; }
    117119
     
    121123            @return Returns true if the Pickupable is enabled.
    122124            */
    123             inline bool isEnabled(void)
     125            inline bool isEnabled(void) const
    124126                { return this->enabled_; }
    125127
     
    127129            bool drop(bool createSpawner = true); //!< Can be called to drop a Pickupable.
    128130
    129             virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this Pickupable.
     131            virtual bool isTarget(const PickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this Pickupable.
    130132            bool isTarget(const Identifier* identifier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this Pickupable.
    131133            bool addTarget(PickupCarrier* target); //!< Add a PickupCarrier as target of this Pickupable.
     
    139141            @return Returns a pointer to the PickupIdentifier of this Pickupable.
    140142            */
    141             virtual const PickupIdentifier* getPickupIdentifier(void)
     143            virtual const PickupIdentifier* getPickupIdentifier(void) const
    142144                { return this->pickupIdentifier_; }
    143145
Note: See TracChangeset for help on using the changeset viewer.