Changeset 8858 for code/trunk/src/modules/questsystem/effects
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/modules/questsystem/effects/AddQuest.cc
r7552 r8858 70 70 SUPER(AddQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New AddQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New AddQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(5) << "AddQuest on player: " << player << " ." << std::endl;87 orxout(verbose_more, context::quests) << "AddQuest on player: " << player << " ." << endl; 88 88 89 89 try … … 95 95 catch(const orxonox::Exception& ex) 96 96 { 97 COUT(2) << ex.getFullDescription() << std::endl;97 orxout(internal_warning, context::quests) << ex.getFullDescription() << endl; 98 98 return false; 99 99 } 100 100 101 COUT(4) << "Quest {" << this->getQuestId() << "} successfully added to player: " << player << " ." << std::endl;101 orxout(verbose, context::quests) << "Quest {" << this->getQuestId() << "} successfully added to player: " << player << " ." << endl; 102 102 return true; 103 103 } -
code/trunk/src/modules/questsystem/effects/AddQuestHint.cc
r8079 r8858 73 73 XMLPortParam(AddQuestHint, "hintId", setHintId, getHintId, xmlelement, mode); 74 74 75 COUT(4) << "New AddQuestHint, with target QuestHint {" << this->getHintId() << "}, created." << std::endl;75 orxout(verbose, context::quests) << "New AddQuestHint, with target QuestHint {" << this->getHintId() << "}, created." << endl; 76 76 } 77 77 … … 88 88 if(id == "") 89 89 { 90 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;90 orxout(internal_warning, context::quests) << "Invalid id. QuestItem id {" << id << "} could not be set." << endl; 91 91 return false; 92 92 } … … 108 108 assert(player); 109 109 110 COUT(5) << "AddQuestHint on player: " << player << " ." << std::endl;110 orxout(verbose_more, context::quests) << "AddQuestHint on player: " << player << " ." << endl; 111 111 112 112 try … … 118 118 catch(const Exception& e) 119 119 { 120 COUT(2) << e.getFullDescription() << std::endl;120 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 121 121 return false; 122 122 } 123 123 124 COUT(4) << "QuestHint {" << this->getHintId() << "} successfully added to player: " << player << " ." << std::endl;124 orxout(verbose, context::quests) << "QuestHint {" << this->getHintId() << "} successfully added to player: " << player << " ." << endl; 125 125 return true; 126 126 -
code/trunk/src/modules/questsystem/effects/AddReward.cc
r8351 r8858 70 70 XMLPortObject(AddReward, Rewardable, "", addRewardable, getRewardables, xmlelement, mode); 71 71 72 COUT(4) << "New AddReward, with " << this->rewards_.size() << " Rewardables created." << std::endl;72 orxout(verbose, context::quests) << "New AddReward, with " << this->rewards_.size() << " Rewardables created." << endl; 73 73 } 74 74 … … 103 103 bool AddReward::invoke(PlayerInfo* player) 104 104 { 105 COUT(5) << "AddReward on player: " << player << " ." << std::endl;105 orxout(verbose_more, context::quests) << "AddReward on player: " << player << " ." << endl; 106 106 107 107 bool temp = true; … … 109 109 temp = temp && (*reward)->reward(player); 110 110 111 COUT(4) << "Rewardable successfully added to player." << player << " ." << std::endl;111 orxout(verbose, context::quests) << "Rewardable successfully added to player." << player << " ." << endl; 112 112 113 113 return temp; -
code/trunk/src/modules/questsystem/effects/ChangeQuestStatus.cc
r8079 r8858 83 83 if(id == "") 84 84 { 85 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;85 orxout(internal_warning, context::quests) << "Invalid id. QuestItem id {" << id << "} could not be set." << endl; 86 86 return false; 87 87 } -
code/trunk/src/modules/questsystem/effects/CompleteQuest.cc
r7552 r8858 70 70 SUPER(CompleteQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New CompleteQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New CompleteQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(5) << "CompleteQuest on player: " << player << " ." << std::endl;87 orxout(verbose_more, context::quests) << "CompleteQuest on player: " << player << " ." << endl; 88 88 89 89 Quest* quest; … … 97 97 catch(const Exception& e) 98 98 { 99 COUT(2) << e.getFullDescription() << std::endl;99 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 100 100 return false; 101 101 } 102 102 103 COUT(4) << "Quest {" << quest->getId() << "} successfully completed by player: " << player << " ." << std::endl;103 orxout(verbose, context::quests) << "Quest {" << quest->getId() << "} successfully completed by player: " << player << " ." << endl; 104 104 return true; 105 105 } -
code/trunk/src/modules/questsystem/effects/FailQuest.cc
r7552 r8858 70 70 SUPER(FailQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New FailQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New FailQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(4) << "FailQuest on player: " << player << " ." << std::endl;87 orxout(verbose, context::quests) << "FailQuest on player: " << player << " ." << endl; 88 88 89 89 Quest* quest; … … 96 96 catch(const Exception& e) 97 97 { 98 COUT(2) << e.getFullDescription() << std::endl;98 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 99 99 return false; 100 100 } 101 101 102 COUT(4) << "Quest {" << quest->getId() << "} failed by player: " << player << " ." << std::endl;102 orxout(verbose, context::quests) << "Quest {" << quest->getId() << "} failed by player: " << player << " ." << endl; 103 103 return true; 104 104 }
Note: See TracChangeset
for help on using the changeset viewer.