Changeset 7494 for code/trunk/src/modules/pickup/PickupCollection.h
- Timestamp:
- Sep 28, 2010, 5:31:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupCollection.h
r7456 r7494 48 48 /** 49 49 @brief 50 The PickupCollection combines different Pickupables to a coherent, single pickup and makes them seem (from the outside looking in) just as if they were just one Pickupable. 50 The PickupCollection combines different @ref orxonox::Pickupable "Pickupables" (more precisely @ref orxonox::CollectiblePickup "CollectiblePickups") to a coherent, single pickup and makes them seem (from the outside looking in) just as if they were just one @ref orxonox::Pickupable "Pickupable". 51 52 To differentiate between different types of @ref orxonox::PickupCollection "PickupCollections" (just as we differentiate between different types of @ref orxonox::Pickupable "Pickupables") we define a new identifyer called the @ref orxonox::PickupCollectionIdentifier "PickupCollectionIdentifier" which has pretty much the same properties as the @ref orxonox::PickupIdentifier "PickupIdentifier" but extende to @ref orxonox::PickupCollection "PickupCollections". 53 54 A PickupCollection can be created in XML as follows: 55 @code 56 <PickupCollection> 57 <pickupables> 58 <CollectiblePickup ... /> 59 ... 60 <CollectiblePickup ... /> 61 </pickupables> 62 </PickupCollection> 63 @endcode 64 51 65 @author 52 66 Damian 'Mozork' Frick … … 65 79 virtual void changedPickedUp(void); //!< Is called when the pickup has transited from picked up to dropped or the other way around. 66 80 67 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.81 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input pickup. 68 82 69 83 virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection. … … 88 102 void changedUsedAction(void); //!< Helper method. 89 103 void changedPickedUpAction(void); //!< Helper method. 90 104 91 105 std::vector<CollectiblePickup*> pickups_; //!< The list of the pointers of all the Pickupables this PickupCollection consists of. They are weak pointers to facilitate testing, whether the pointers are still valid. 92 106
Note: See TracChangeset
for help on using the changeset viewer.