Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2008, 7:38:53 AM (15 years ago)
Author:
dafrick
Message:
  • QuestListener works now.
  • Rearranged the places Notifications are sent from, and also created actually meaningfull Notification messages
  • Done some changes to Notifications
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem3/src/orxonox/objects/quest/Quest.cc

    r2328 r2346  
    377377        QuestListener::advertiseStatusChange(this->listeners_, "fail"); //!< Tells the QuestListeners, that the status has changed to failed.
    378378        this->setStatus(player, questStatus::failed);
     379       
     380        this->getDescription()->sendFailQuestNotification();
    379381        return true;
    380382    }
     
    392394        QuestListener::advertiseStatusChange(this->listeners_, "complete"); //!< Tells the QuestListeners, that the status has changed to completed.
    393395        this->setStatus(player, questStatus::completed);
     396       
     397        this->getDescription()->sendCompleteQuestNotification();
    394398        return true;
    395399    }
     
    414418       
    415419        this->setStatus(player, questStatus::active);
     420       
     421        this->getDescription()->sendAddQuestNotification();
    416422        return true;
    417423    }
Note: See TracChangeset for help on using the changeset viewer.