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/objects/quest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.cc

    r2785 r2786  
    5656        RegisterRootObject(QuestManager);
    5757
     58        assert(singletonRef_s == 0);
     59        singletonRef_s = this;
    5860    }
    5961
     
    7577    /*static*/ QuestManager & QuestManager::getInstance()
    7678    {
    77         if(singletonRef_s == NULL)
    78         {
    79             singletonRef_s = new QuestManager();
    80         }
     79        assert(singletonRef_s);
    8180        return *singletonRef_s;
    8281    }
  • code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.h

    r2785 r2786  
    5353    class _OrxonoxExport QuestManager : public BaseObject
    5454    {
    55 
    56         protected:
     55        public:
    5756            QuestManager();
    58 
    59         public:
    6057            virtual ~QuestManager();
    6158
Note: See TracChangeset for help on using the changeset viewer.