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/PickupCarrier.h

    r7494 r7547  
    6464        Different PickupCarriers are structured hierarchically, a pickup can be picked up by a PickupCarrier that can't really carry that particular pickup but one of its children (or one of their children) can, and thus it gets "handed down" until it is at the right place.
    6565        But this structure has to be established first.
    66         - <b>getCarrierChildren()</b> To this end a PickupCarrier needs to implement getCarrierChildren() which returns a list of its direct PickupCarrier children. If you need an example, have a look at @ref orxonox::Pawn "Pawn" and @ref orxonx::Engine "Engine".
     66        - <b>getCarrierChildren()</b> To this end a PickupCarrier needs to implement getCarrierChildren() which returns a list of its direct PickupCarrier children. If you need an example, have a look at @ref orxonox::Pawn "Pawn" and @ref orxonox::Engine "Engine".
    6767        - <b>getCarrierParent()</b> This is the method in the other direction. It returns the parent of this PickupCarrier, or NULL if the PickupCarrier is a root node in this hierarchy.
    6868
    6969    @author
    7070        Damian 'Mozork' Frick
     71
     72    @ingroup Pickup
    7173    */
    7274    class _OrxonoxExport PickupCarrier : virtual public OrxonoxClass
     
    8890            void preDestroy(void); //!< Is called before the PickupCarrier is effectively destroyed.
    8991
    90             bool isTarget(const Pickupable* pickup); //!< Can be used to check whether the PickupCarrier or a child of his is a target ot the input Pickupable.
     92            bool isTarget(const Pickupable* pickup) const; //!< Can be used to check whether the PickupCarrier or a child of his is a target ot the input Pickupable.
    9193            PickupCarrier* getTarget(const Pickupable* pickup); //!< Get the carrier that is both a child of the PickupCarrier (or the PickupCarrier itself) and a target of the input Pickupable.
    9294
     
    9698            @return Returns the position as a Vector3.
    9799            */
    98             virtual const Vector3& getCarrierPosition(void) = 0;
     100            virtual const Vector3& getCarrierPosition(void) const = 0;
    99101
    100102        protected:
     
    105107            @return Returns a pointer to a list of all direct children.
    106108            */
    107             virtual std::vector<PickupCarrier*>* getCarrierChildren(void) = 0;
     109            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const = 0;
    108110            /**
    109111            @brief Get the parent of this PickupSpawner.
     
    111113            @return Returns a pointer to the parent.
    112114            */
    113             virtual PickupCarrier* getCarrierParent(void) = 0;
     115            virtual PickupCarrier* getCarrierParent(void) const = 0;
    114116
    115117            /**
Note: See TracChangeset for help on using the changeset viewer.