Changeset 2786 for code/branches
- Timestamp:
- Mar 15, 2009, 12:55:45 PM (16 years ago)
- Location:
- code/branches/questsystem5/src/orxonox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/gamestates/GSLevel.cc
r2759 r2786 46 46 #include "LevelManager.h" 47 47 #include "PlayerManager.h" 48 #include "objects/quest/QuestManager.h" 49 #include "overlays/notifications/NotificationManager.h" 48 50 49 51 namespace orxonox … … 95 97 96 98 this->playerManager_ = new PlayerManager(); 99 100 this->questManager_ = new QuestManager(); 101 102 this->notificationManager_ = new NotificationManager(); 97 103 98 104 if (Core::isMaster()) -
code/branches/questsystem5/src/orxonox/gamestates/GSLevel.h
r2710 r2786 63 63 LevelManager* levelManager_; 64 64 PlayerManager* playerManager_; 65 QuestManager* questManager_; 66 NotificationManager* notificationManager_; 65 67 66 68 //##### ConfigValues ##### -
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.cc
r2785 r2786 56 56 RegisterRootObject(QuestManager); 57 57 58 assert(singletonRef_s == 0); 59 singletonRef_s = this; 58 60 } 59 61 … … 75 77 /*static*/ QuestManager & QuestManager::getInstance() 76 78 { 77 if(singletonRef_s == NULL) 78 { 79 singletonRef_s = new QuestManager(); 80 } 79 assert(singletonRef_s); 81 80 return *singletonRef_s; 82 81 } -
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.h
r2785 r2786 53 53 class _OrxonoxExport QuestManager : public BaseObject 54 54 { 55 56 protected: 55 public: 57 56 QuestManager(); 58 59 public:60 57 virtual ~QuestManager(); 61 58 -
code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationManager.cc
r2785 r2786 58 58 RegisterRootObject(NotificationManager); 59 59 60 assert(singletonRef_s == 0); 61 singletonRef_s = this; 62 60 63 this->highestIndex_ = 0; 61 64 } … … 77 80 /*static*/ NotificationManager & NotificationManager::getInstance() 78 81 { 79 if(singletonRef_s == NULL) 80 { 81 singletonRef_s = new NotificationManager(); 82 } 82 assert(singletonRef_s); 83 83 return *singletonRef_s; 84 84 } -
code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationManager.h
r2785 r2786 57 57 class _OrxonoxExport NotificationManager : public BaseObject 58 58 { 59 p rotected:59 public: 60 60 NotificationManager(); 61 62 public:63 61 virtual ~NotificationManager(); 64 62
Note: See TracChangeset
for help on using the changeset viewer.