Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 1:36:05 AM (16 years ago)
Author:
landauf
Message:

reverted r2909 because there were some unwanted files included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/QuestDescription.cc

    r2909 r2910  
    2828
    2929/**
    30     @file QuestDescription.cc
     30    @file
    3131    @brief Implementation of the QuestDescription class.
    3232*/
     
    3737
    3838#include "core/CoreIncludes.h"
    39 #include "QuestNotification.h"
     39#include "orxonox/overlays/notifications/Notification.h"
    4040
    4141namespace orxonox
     
    8989    @return
    9090        Returns true if successful.
    91     @todo
    92         Make sure the messages meet the conditions.
    9391    */
    9492    bool QuestDescription::notificationHelper(const std::string & item, const std::string & status) const
    9593    {
    9694        std::string message = "";
     95        std::string title = "";
    9796        if(item == "hint")
    9897        {
    99             message = "You received a hint: '" + this->title_ + "'";
     98            title = "You received a hint: '" + this->title_ + "'";
     99            message = this->description_;
    100100        }
    101101        else if(item == "quest")
     
    103103            if(status == "start")
    104104            {
    105                 message = "You received a new quest: '" + this->title_ + "'";
     105                title = "You received a new quest: '" + this->title_ + "'";
     106                message = this->description_;
    106107            }
    107108            else if(status == "fail")
    108109            {
    109                 message = "You failed the quest: '" + this->title_ + "'";
     110                title = "You failed the quest: '" + this->title_ + "'";
     111                message = this->failMessage_;
    110112            }
    111113            else if(status == "complete")
    112114            {
    113                 message = "You successfully completed the quest: '" + this->title_ + "'";
     115                title = "You successfully completed the quest: '" + this->title_ + "'";
     116                message = this->completeMessage_;
    114117            }
    115118            else
     
    125128        }
    126129       
    127         QuestNotification* notification = new QuestNotification(message);
     130        Notification* notification = new Notification(0, message, title, 30);
    128131        notification->send();
    129132        return true;
Note: See TracChangeset for help on using the changeset viewer.