Changeset 2779 for code/branches/questsystem5/src/orxonox/objects
- Timestamp:
- Mar 12, 2009, 5:13:34 PM (16 years ago)
- Location:
- code/branches/questsystem5/src/orxonox/objects/quest
- Files:
-
- 2 added
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/objects/quest/AddQuest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddQuest.cc 31 31 @brief Implementation of the AddQuest class. 32 32 */ … … 42 42 #include "orxonox/objects/infos/PlayerInfo.h" 43 43 #include "QuestManager.h" 44 #include "QuestDescription.h"; 44 45 #include "Quest.h" 45 46 -
code/branches/questsystem5/src/orxonox/objects/quest/AddQuest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddQuest.h 31 31 @brief Definition of the AddQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/AddQuestHint.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddQuestHint.cc 31 31 @brief Implementation of the AddQuestHint class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/AddQuestHint.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddQuestHint.h 31 31 @brief Definition of the AddQuestHint class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/AddReward.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddReward.cc 31 31 @brief Implementation of the AddReward class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/AddReward.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file AddReward.h 31 31 @brief Definition of the AddReward class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/CMakeLists.txt
r2710 r2779 16 16 QuestListener.cc 17 17 QuestManager.cc 18 QuestNotification.cc 18 19 Rewardable.cc 19 20 ) -
code/branches/questsystem5/src/orxonox/objects/quest/ChangeQuestStatus.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file ChangeQuestStatus.cc 31 31 @brief Implementation of the ChangeQuestStatus class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/ChangeQuestStatus.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file ChangeQuestStatus.h 31 31 @brief Definition of the ChangeQuestStatus class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/CompleteQuest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file CompleteQuest.cc 31 31 @brief Implementation of the CompleteQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/CompleteQuest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file CompleteQuest.h 31 31 @brief Definition of the CompleteQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/FailQuest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file FailQuest.cc 31 31 @brief Implementation of the FailQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/FailQuest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file FailQuest.h 31 31 @brief Definition of the FailQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/GlobalQuest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file GlobalQuest.cc 31 31 @brief Implementation of the GlobalQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/GlobalQuest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file GlobalQuest.h 31 31 @brief Definition of the GlobalQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/LocalQuest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file LocalQuest.cc 31 31 @brief Implementation of the LocalQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/LocalQuest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file LocalQuest.h 31 31 @brief Definition of the LocalQuest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/Quest.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file Quest.cc 31 31 @brief Implementation of the Quest class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/Quest.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file Quest.h 31 31 @brief Definition of the Quest class. 32 32 The Quest is the parent class of LocalQuest and GlobalQuest. -
code/branches/questsystem5/src/orxonox/objects/quest/QuestDescription.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestDescription.cc 31 31 @brief Implementation of the QuestDescription class. 32 32 */ … … 37 37 38 38 #include "core/CoreIncludes.h" 39 #include " orxonox/overlays/notifications/Notification.h"39 #include "QuestNotification.h" 40 40 41 41 namespace orxonox … … 89 89 @return 90 90 Returns true if successful. 91 @todo 92 Make sure the messages meet the conditions. 91 93 */ 92 94 bool QuestDescription::notificationHelper(const std::string & item, const std::string & status) const 93 95 { 94 96 std::string message = ""; 95 std::string title = "";96 97 if(item == "hint") 97 98 { 98 title = "You received a hint: '" + this->title_ + "'"; 99 message = this->description_; 99 message = "You received a hint: '" + this->title_ + "'"; 100 100 } 101 101 else if(item == "quest") … … 103 103 if(status == "start") 104 104 { 105 title = "You received a new quest: '" + this->title_ + "'"; 106 message = this->description_; 105 message = "You received a new quest: '" + this->title_ + "'"; 107 106 } 108 107 else if(status == "fail") 109 108 { 110 title = "You failed the quest: '" + this->title_ + "'"; 111 message = this->failMessage_; 109 message = "You failed the quest: '" + this->title_ + "'"; 112 110 } 113 111 else if(status == "complete") 114 112 { 115 title = "You successfully completed the quest: '" + this->title_ + "'"; 116 message = this->completeMessage_; 113 message = "You successfully completed the quest: '" + this->title_ + "'"; 117 114 } 118 115 else … … 128 125 } 129 126 130 Notification* notification = new Notification(0, message, title, 30);127 QuestNotification* notification = new QuestNotification(message); 131 128 notification->send(); 132 129 return true; -
code/branches/questsystem5/src/orxonox/objects/quest/QuestDescription.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestDescription.h 31 31 @brief Definition of the QuestDescription class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestEffect.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestEffect.cc 31 31 @brief Implementation of the QuestEffect class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestEffect.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestEffect.h 31 31 @brief Definition of the QuestEffect class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2662 r2779 28 28 29 29 /** 30 @file 30 @file QuestEffectBeacon.cc 31 31 @brief Implementation of the QuestEffectBeacon class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestEffectBeacon.h
r2662 r2779 28 28 29 29 /** 30 @file 30 @file QuestEffectBeacon.h 31 31 @brief Definition of the QuestEffectBeacon class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestHint.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestHint.cc 31 31 @brief Implementation of the QuestHint class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestHint.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestHint.h 31 31 @brief Definition of the QuestHint class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestItem.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestItem.cc 31 31 @brief Implementation of the QuestItem class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestItem.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestItem.h 31 31 @brief Definition of the QuestItem class. 32 32 The QuestItem is the parent class of Quest and QuestHint. -
code/branches/questsystem5/src/orxonox/objects/quest/QuestListener.cc
r2662 r2779 28 28 29 29 /** 30 @file 30 @file QuestListener.cc 31 31 @brief Implementation of the QuestListener class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestListener.h
r2662 r2779 28 28 29 29 /** 30 @file 30 @file QuestListener.h 31 31 @brief Definition of the QuestListener class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestManager.cc 31 31 @brief Implementation of the QuestManager class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file QuestManager.h 31 31 @brief Definition of the QuestManager class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/Rewardable.cc
r2710 r2779 28 28 29 29 /** 30 @file 30 @file Rewardable.cc 31 31 @brief Implementation of the Rewardable class. 32 32 */ -
code/branches/questsystem5/src/orxonox/objects/quest/Rewardable.h
r2710 r2779 28 28 29 29 /** 30 @file 30 @file Rewardable.h 31 31 @brief Definition of the Rewardable class. 32 32 */
Note: See TracChangeset
for help on using the changeset viewer.