- Timestamp:
- May 11, 2009, 6:03:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupCollection.cc
r2917 r2972 38 38 #include "PassiveItem.h" 39 39 #include "UsableItem.h" 40 41 #include "core/CoreIncludes.h" 40 42 41 43 #include "objects/worldentities/pawns/Pawn.h" … … 312 314 @return Returns a list of all the equipment-type items in the collection. 313 315 */ 314 std:: set<BaseItem*> PickupCollection::getEquipmentItems()315 { 316 std:: set<BaseItem*> ret;316 std::deque<EquipmentItem*> PickupCollection::getEquipmentItems() 317 { 318 std::deque<EquipmentItem*> ret; 317 319 Identifier* ident = Class(EquipmentItem); 318 320 … … 320 322 { 321 323 if ((*it).second->isA(ident)) 322 ret. insert((*it).second);324 ret.push_back(dynamic_cast<EquipmentItem*>((*it).second)); 323 325 } 324 326 … … 329 331 @return Returns a list of all the passive items in the collection. 330 332 */ 331 std:: set<BaseItem*> PickupCollection::getPassiveItems()332 { 333 std:: set<BaseItem*> ret;333 std::deque<PassiveItem*> PickupCollection::getPassiveItems() 334 { 335 std::deque<PassiveItem*> ret; 334 336 Identifier* ident = Class(PassiveItem); 335 337 … … 337 339 { 338 340 if ((*it).second->isA(ident)) 339 ret. insert((*it).second);341 ret.push_back(dynamic_cast<PassiveItem*>((*it).second)); 340 342 } 341 343 … … 346 348 @return Returns a list of all the usable items in the collection. 347 349 */ 348 std:: set<BaseItem*> PickupCollection::getUsableItems()349 { 350 std:: set<BaseItem*> ret;350 std::deque<UsableItem*> PickupCollection::getUsableItems() 351 { 352 std::deque<UsableItem*> ret; 351 353 Identifier* ident = Class(UsableItem); 352 354 … … 354 356 { 355 357 if ((*it).second->isA(ident)) 356 ret. insert((*it).second);358 ret.push_back(dynamic_cast<UsableItem*>((*it).second)); 357 359 } 358 360
Note: See TracChangeset
for help on using the changeset viewer.