- Timestamp:
- Apr 2, 2010, 5:35:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup4/src/modules/pickup/PickupManager.cc
r6669 r6675 127 127 } 128 128 129 unsignedint PickupManager::getNumCarrierChildren(PickupCarrier* carrier)129 int PickupManager::getNumCarrierChildren(PickupCarrier* carrier) 130 130 { 131 131 if(carrier == NULL) … … 134 134 } 135 135 136 PickupCarrier* PickupManager::getCarrierChild( unsignedint index, PickupCarrier* carrier)136 PickupCarrier* PickupManager::getCarrierChild(int index, PickupCarrier* carrier) 137 137 { 138 if(carrier == NULL) 139 return NULL; 138 140 return carrier->getCarrierChild(index); 139 141 } 140 142 141 PickupRepresentation* PickupManager::getPickupRepresentation(unsigned int index, PickupCarrier* carrier) 143 const std::string& PickupManager::getCarrierName(orxonox::PickupCarrier* carrier) 144 { 145 if(carrier == NULL) 146 return BLANKSTRING; 147 return carrier->getCarrierName(); 148 } 149 150 PickupRepresentation* PickupManager::getPickupRepresentation(int index, PickupCarrier* carrier) 142 151 { 143 152 Pickupable* pickup = carrier->getPickup(index); … … 149 158 150 159 151 unsignedint PickupManager::getNumPickups(PickupCarrier* carrier)160 int PickupManager::getNumPickups(PickupCarrier* carrier) 152 161 { 162 if(carrier == NULL) 163 return 0; 153 164 return carrier->getNumPickups(); 154 165 } 155 166 156 void PickupManager::dropPickup( unsignedint index, PickupCarrier* carrier)167 void PickupManager::dropPickup(int index, PickupCarrier* carrier) 157 168 { 158 169 Pickupable* pickup = carrier->getPickup(index); … … 160 171 } 161 172 162 void PickupManager::usePickup( unsignedint index, PickupCarrier* carrier, bool use)173 void PickupManager::usePickup(int index, PickupCarrier* carrier, bool use) 163 174 { 164 175 Pickupable* pickup = carrier->getPickup(index);
Note: See TracChangeset
for help on using the changeset viewer.