Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 15, 2009, 12:55:45 PM (16 years ago)
Author:
dafrick
Message:

Some changes to QuestManager and NotificationManager by Reto's request. (Make them more consistent as Singletons)

Location:
code/branches/questsystem5/src/orxonox/overlays/notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationManager.cc

    r2785 r2786  
    5858        RegisterRootObject(NotificationManager);
    5959
     60        assert(singletonRef_s == 0);
     61        singletonRef_s = this;
     62
    6063        this->highestIndex_ = 0;
    6164    }
     
    7780    /*static*/ NotificationManager & NotificationManager::getInstance()
    7881    {
    79         if(singletonRef_s == NULL)
    80         {
    81             singletonRef_s = new NotificationManager();
    82         }
     82        assert(singletonRef_s);
    8383        return *singletonRef_s;
    8484    }
  • code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationManager.h

    r2785 r2786  
    5757    class _OrxonoxExport NotificationManager : public BaseObject
    5858    {
    59         protected:
     59        public:
    6060            NotificationManager();
    61 
    62         public:
    6361            virtual ~NotificationManager();
    6462               
Note: See TracChangeset for help on using the changeset viewer.