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

    r7533 r7547  
    3838#include "PickupPrereqs.h"
    3939
     40#include <list>
     41
     42#include "CollectiblePickup.h"
    4043#include "core/BaseObject.h"
    41 #include "CollectiblePickup.h"
    42 
    43 #include <list>
    4444
    4545namespace orxonox
     
    8383            virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input pickup.
    8484
    85             virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.
     85            virtual bool isTarget(const PickupCarrier* carrier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.
    8686
    87             virtual const PickupIdentifier* getPickupIdentifier(void); //!< Get the PickupIdentifier of this PickupCollection.
     87            virtual const PickupIdentifier* getPickupIdentifier(void) const; //!< Get the PickupIdentifier of this PickupCollection.
    8888
    8989            bool addPickupable(CollectiblePickup* pickup); //!< Add the input Pickupable to list of Pickupables combined by this PickupCollection.
    90             const Pickupable* getPickupable(unsigned int index); //!< Get the Pickupable at the given index.
     90            const Pickupable* getPickupable(unsigned int index) const; //!< Get the Pickupable at the given index.
    9191
    9292            void pickupChangedUsed(bool changed); //!< Informs the PickupCollection, that one of its pickups has changed its used status to the input value.
Note: See TracChangeset for help on using the changeset viewer.