Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 1:07:27 AM (16 years ago)
Author:
dafrick
Message:

Merging the QuestSystem branch to the trunk. Let's hope, this isn't a 'third time's the charm'-thing…

Location:
code/trunk/src/orxonox/gamestates
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSLevel.cc

    r2896 r2909  
    5050#include "LevelManager.h"
    5151#include "PlayerManager.h"
     52#include "orxonox/objects/quest/QuestManager.h"
     53#include "orxonox/overlays/notifications/NotificationManager.h"
    5254#include "gui/GUIManager.h"
    5355
     
    110112
    111113        this->playerManager_ = new PlayerManager();
     114
     115        this->questManager_ = new QuestManager();
     116
     117        this->notificationManager_ = new NotificationManager();
    112118
    113119        if (GameMode::isMaster())
     
    203209            delete this->playerManager_;
    204210            this->playerManager_ = 0;
     211        }
     212
     213        if (this->questManager_)
     214        {
     215            delete this->questManager_;
     216            this->questManager_ = NULL;
     217        }
     218
     219        if (this->notificationManager_)
     220        {
     221            delete this->notificationManager_;
     222            this->notificationManager_ = NULL;
    205223        }
    206224
  • code/trunk/src/orxonox/gamestates/GSLevel.h

    r2896 r2909  
    6767        LevelManager*         levelManager_;            //!< global level manager
    6868        PlayerManager*        playerManager_;           //!< player manager for this level
     69        QuestManager*         questManager_;            //!< quest manager for this level
     70        NotificationManager*  notificationManager_;     //!< notification manager for this level
    6971
    7072        //##### ConfigValues #####
Note: See TracChangeset for help on using the changeset viewer.