Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2009, 12:33:16 AM (15 years ago)
Author:
landauf
Message:

Moved Notification and NotificationManger from overlays to the quest objects (NotificationOverlay and NotificationQueue remain with the other overlays).

Added a new interface NotificationListener. The NotificationManager sends notifications to all listeners. NotificationQueue is such a listener (through inheritance). This removes another dependency between orxonox and overlays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libraries/src/orxonox/overlays/notifications/NotificationOverlay.cc

    r3301 r5619  
    3636#include "util/Exception.h"
    3737#include "core/CoreIncludes.h"
    38 #include "Notification.h"
     38#include "objects/quest/notifications/Notification.h"
    3939#include "NotificationQueue.h"
    4040
     
    6565    {
    6666        this->initialize();
    67        
     67
    6868        if(notification == NULL || queue == NULL) //!> If either notification or queue are not given an Exception is thrown.
    6969        {
     
    7373        this->queue_ = queue;
    7474        this->defineOverlay();
    75        
     75
    7676        this->processNotification(notification);
    7777    }
    78    
     78
    7979    /**
    8080    @brief
     
    8585        this->queue_ = NULL;
    8686    }
    87    
     87
    8888    /**
    8989    @brief
Note: See TracChangeset for help on using the changeset viewer.