Changeset 8811 for code/branches/output/src/modules/questsystem/Quest.cc
- Timestamp:
- Aug 1, 2011, 7:09:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/modules/questsystem/Quest.cc
r7552 r8811 96 96 this->parentQuest_ = quest; 97 97 98 COUT(4) << "Parent Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;98 orxout(verbose, context::quests) << "Parent Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 99 99 return true; 100 100 } … … 115 115 this->subQuests_.push_back(quest); // Adds the Quest to the end of the list of sub-quests. 116 116 117 COUT(4) << "Sub Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;117 orxout(verbose, context::quests) << "Sub Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 118 118 return true; 119 119 } … … 135 135 this->hints_.push_back(hint); // Adds the QuestHint to the end of the list of QuestHints. 136 136 137 COUT(4) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;137 orxout(verbose, context::quests) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 138 138 return true; 139 139 } … … 153 153 this->failEffects_.push_back(effect); // Adds the QuestEffect to the end of the list of fail QuestEffects. 154 154 155 COUT(4) << "A FailEffect was added to Quest {" << this->getId() << "}." << std::endl;155 orxout(verbose, context::quests) << "A FailEffect was added to Quest {" << this->getId() << "}." << endl; 156 156 return true; 157 157 } … … 171 171 this->completeEffects_.push_back(effect); // Adds the QuestEffect to the end of the list of complete QuestEffects. 172 172 173 COUT(4) << "A CompleteEffect was added to Quest {" << this->getId() << "}." << std::endl;173 orxout(verbose, context::quests) << "A CompleteEffect was added to Quest {" << this->getId() << "}." << endl; 174 174 return true; 175 175 } … … 341 341 this->setStatus(player, QuestStatus::Failed); 342 342 343 COUT(4) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." <<std::endl;343 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." << endl; 344 344 345 345 this->getDescription()->sendFailQuestNotification(player); … … 360 360 this->setStatus(player, QuestStatus::Completed); 361 361 362 COUT(4) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." <<std::endl;362 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." << endl; 363 363 364 364 this->getDescription()->sendCompleteQuestNotification(player); … … 378 378 if(!this->isStartable(player)) // Checks whether the quest can be started. 379 379 { 380 COUT(4) << "A non-startable quest was trying to be started." << std::endl;380 orxout(verbose, context::quests) << "A non-startable quest was trying to be started." << endl; 381 381 return false; 382 382 } 383 383 384 COUT(4) << "Quest {" << this->getId() << "} is started for player: " << player << " ." <<std::endl;384 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is started for player: " << player << " ." << endl; 385 385 386 386 QuestListener::advertiseStatusChange(this->listeners_, "start"); // Tells the QuestListeners, that the status has changed to active.
Note: See TracChangeset
for help on using the changeset viewer.