- Timestamp:
- Jun 9, 2010, 9:32:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/pickup/PickupManager.h
r6996 r7127 60 60 { // tolua_export 61 61 friend class Singleton<PickupManager>; 62 62 63 63 public: 64 64 PickupManager(); 65 65 virtual ~PickupManager(); 66 66 67 67 static PickupManager& getInstance() { return Singleton<PickupManager>::getInstance(); } // tolua_export 68 68 69 69 bool registerRepresentation(const PickupIdentifier* identifier, PickupRepresentation* representation); //!< Registers a PickupRepresentation together with the PickupIdentifier of the Pickupable the PickupRepresentation represents. 70 70 bool unregisterRepresentation(const PickupIdentifier* identifier, PickupRepresentation* representation); //!< Unegisters a PickupRepresentation together with the PickupIdentifier of the Pickupable the PickupRepresentation represents. 71 71 PickupRepresentation* getRepresentation(const PickupIdentifier* identifier); //!< Get the PickupRepresentation representing the Pickupable with the input PickupIdentifier. 72 72 73 73 // tolua_begin 74 74 int getNumPickups(void); … … 80 80 bool isValidPickup(orxonox::Pickupable* pickup) { std::map<Pickupable*, WeakPtr<Pickupable> >::iterator it = this->pickupsList_.find(pickup); if(it == this->pickupsList_.end()) return false; return it->second.get() != NULL; } 81 81 // tolua_end 82 82 83 83 private: 84 84 static PickupManager* singletonPtr_s; 85 85 static const std::string guiName_s; 86 86 87 87 PickupRepresentation* defaultRepresentation_; //!< The default PickupRepresentation. 88 88 std::map<const PickupIdentifier*, PickupRepresentation*, PickupIdentifierCompare> representations_; //!< Map linking PickupIdentifiers (representing types if Pickupables) and PickupRepresentations. … … 92 92 93 93 std::vector<PickupCarrier*>* getAllCarriers(PickupCarrier* carrier); 94 94 95 95 }; // tolua_export 96 96 97 97 } // tolua_export 98 98
Note: See TracChangeset
for help on using the changeset viewer.