Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2009, 6:03:40 PM (15 years ago)
Author:
danielh
Message:

Update

  • Minor changes in BaseItem
  • Updated to NotificationQueue from trunk (compile error with old)
  • Added PickupInventory for GUI handling
  • Added basic support for toLua++ methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/PickupCollection.cc

    r2917 r2972  
    3838#include "PassiveItem.h"
    3939#include "UsableItem.h"
     40
     41#include "core/CoreIncludes.h"
    4042
    4143#include "objects/worldentities/pawns/Pawn.h"
     
    312314        @return Returns a list of all the equipment-type items in the collection.
    313315    */
    314     std::set<BaseItem*> PickupCollection::getEquipmentItems()
    315     {
    316         std::set<BaseItem*> ret;
     316    std::deque<EquipmentItem*> PickupCollection::getEquipmentItems()
     317    {
     318        std::deque<EquipmentItem*> ret;
    317319        Identifier* ident = Class(EquipmentItem);
    318320
     
    320322        {
    321323            if ((*it).second->isA(ident))
    322                 ret.insert((*it).second);
     324                ret.push_back(dynamic_cast<EquipmentItem*>((*it).second));
    323325        }
    324326
     
    329331        @return Returns a list of all the passive items in the collection.
    330332    */
    331     std::set<BaseItem*> PickupCollection::getPassiveItems()
    332     {
    333         std::set<BaseItem*> ret;
     333    std::deque<PassiveItem*> PickupCollection::getPassiveItems()
     334    {
     335        std::deque<PassiveItem*> ret;
    334336        Identifier* ident = Class(PassiveItem);
    335337
     
    337339        {
    338340            if ((*it).second->isA(ident))
    339                 ret.insert((*it).second);
     341                ret.push_back(dynamic_cast<PassiveItem*>((*it).second));
    340342        }
    341343
     
    346348        @return Returns a list of all the usable items in the collection.
    347349    */
    348     std::set<BaseItem*> PickupCollection::getUsableItems()
    349     {
    350         std::set<BaseItem*> ret;
     350    std::deque<UsableItem*> PickupCollection::getUsableItems()
     351    {
     352        std::deque<UsableItem*> ret;
    351353        Identifier* ident = Class(UsableItem);
    352354
     
    354356        {
    355357            if ((*it).second->isA(ident))
    356                 ret.insert((*it).second);
     358                ret.push_back(dynamic_cast<UsableItem*>((*it).second));
    357359        }
    358360
Note: See TracChangeset for help on using the changeset viewer.