Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 15, 2010, 3:27:09 PM (15 years ago)
Author:
dafrick
Message:

Merged pickup branch into trunk. Yay. Persisting bugs will be fixed, very soon.

Location:
code/trunk
Files:
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/interfaces/CMakeLists.txt

    r5781 r6524  
    11ADD_SOURCE_FILES(ORXONOX_SRC_FILES
    22  InterfaceCompilation.cc
     3  Pickupable.cc
    34  RadarViewable.cc
    45)
  • code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc

    r5929 r6524  
    3434
    3535#include "GametypeMessageListener.h"
     36#include "PickupCarrier.h"
    3637#include "PlayerTrigger.h"
    3738#include "RadarListener.h"
     
    5152        RegisterRootObject(GametypeMessageListener);
    5253    }
     54   
     55    //----------------------------
     56    // PickupCarrier
     57    //----------------------------
     58    PickupCarrier::PickupCarrier()
     59    {
     60        RegisterRootObject(PickupCarrier);
     61       
     62    }
     63   
     64    PickupCarrier::~PickupCarrier()
     65    {
     66        for(std::set<Pickupable*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++)
     67        {
     68            (*it)->destroy();
     69        }
     70       
     71        this->pickups_.clear();
     72    }
    5373
     74    //----------------------------
     75    // PlayerTrigger
     76    //----------------------------
     77    PlayerTrigger::PlayerTrigger()
     78    {
     79        RegisterRootObject(PlayerTrigger);
     80
     81        this->player_ = NULL;
     82        this->isForPlayer_ = true;
     83    }
     84   
    5485    //----------------------------
    5586    // RadarListener
     
    83114        RegisterRootObject(NotificationListener);
    84115    }
    85 
    86     //----------------------------
    87     // PlayerTrigger
    88     //----------------------------
    89     PlayerTrigger::PlayerTrigger()
    90     {
    91         RegisterRootObject(PlayerTrigger);
    92 
    93         this->player_ = NULL;
    94         this->isForPlayer_ = true;
    95     }
    96116}
Note: See TracChangeset for help on using the changeset viewer.