Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 21, 2010, 11:15:44 PM (14 years ago)
Author:
dafrick
Message:

Synchronizing Notifications.
In the course of that, notifications are not longer sent by creating a Notification and the calling notification.send() bur by letting the NotificationManager handle all this: NotificationManager::getInstance().sendNotification(message)
This made QuestNotification obsolete, thus it was removde.

Also did some work on synchronizing the Script class. It should work properly most of the time, but the current solution is unreliable and unsatisfactory. So this will change as soon as I know how.

Location:
code/trunk/src/modules/questsystem
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/CMakeLists.txt

    r7401 r7474  
    1010  QuestListener.cc
    1111  QuestManager.cc
    12   QuestNotification.cc
    1312)
    1413
  • code/trunk/src/modules/questsystem/QuestDescription.cc

    r7456 r7474  
    3838#include "core/XMLPort.h"
    3939
    40 #include "QuestNotification.h"
     40#include "infos/PlayerInfo.h"
     41
     42#include "notifications/NotificationManager.h"
    4143
    4244namespace orxonox
    4345{
    4446    CreateFactory(QuestDescription);
     47
     48    /*static*/ const std::string QuestDescription::SENDER = "questsystem";
    4549
    4650    /**
     
    115119        }
    116120
    117         QuestNotification* notification = new QuestNotification(this, message);
    118         notification->send(player);
     121        NotificationManager::sendNotification(message, player->getClientID(), QuestDescription::SENDER);
    119122        return true;
    120123    }
  • code/trunk/src/modules/questsystem/QuestDescription.h

    r7456 r7474  
    128128
    129129        private:
     130            static const std::string SENDER;
     131
    130132            std::string title_; //!< The title.
    131133            std::string description_; //!< The description.
  • code/trunk/src/modules/questsystem/QuestsystemPrereqs.h

    r7164 r7474  
    8181    class QuestListener;
    8282    class QuestManager;
    83     class QuestNotification;
    8483}
    8584
Note: See TracChangeset for help on using the changeset viewer.