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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.