Changeset 2375 for code/branches/questsystem3/src/orxonox/objects/quest
- Timestamp:
- Dec 10, 2008, 1:39:50 PM (16 years ago)
- Location:
- code/branches/questsystem3/src/orxonox/objects/quest
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/objects/quest/AddQuest.cc
r2352 r2375 108 108 } 109 109 110 COUT(3) << "Quest {" << this->getQuestId() << "} successfully added to player ." <<std::endl;110 COUT(3) << "Quest {" << this->getQuestId() << "} successfully added to player: " << player << " ." std::endl; 111 111 return true; 112 112 } -
code/branches/questsystem3/src/orxonox/objects/quest/AddQuestHint.cc
r2352 r2375 129 129 } 130 130 131 COUT(3) << "QuestHint {" << this->getHintId() << "} successfully added to player ." <<std::endl;131 COUT(3) << "QuestHint {" << this->getHintId() << "} successfully added to player: " << player << " ." std::endl; 132 132 return true; 133 133 -
code/branches/questsystem3/src/orxonox/objects/quest/AddReward.cc
r2352 r2375 105 105 bool AddReward::invoke(PlayerInfo* player) 106 106 { 107 COUT(3) << "AddReward on player: " << player << " ." << std::endl; 108 107 109 bool check = true; 108 110 for ( std::list<Rewardable*>::iterator reward = this->rewards_.begin(); reward != this->rewards_.end(); ++reward ) … … 110 112 check = check && (*reward)->reward(player); 111 113 } 114 115 COUT(3) << "Rewardable successfully added to player." << player << " ." << std::endl; 112 116 113 117 return check; -
code/branches/questsystem3/src/orxonox/objects/quest/Quest.cc
r2352 r2375 377 377 this->setStatus(player, questStatus::failed); 378 378 379 COUT(4) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." <<std::endl; 380 379 381 this->getDescription()->sendFailQuestNotification(); 380 382 return true; … … 394 396 this->setStatus(player, questStatus::completed); 395 397 398 COUT(4) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." <<std::endl; 399 396 400 this->getDescription()->sendCompleteQuestNotification(); 397 401 return true; … … 413 417 return false; 414 418 } 419 420 COUT(4) << "Quest {" << this->getId() << "} is started for player: " << player << " ." <<std::endl; 415 421 416 422 QuestListener::advertiseStatusChange(this->listeners_, "start"); //!< Tells the QuestListeners, that the status has changed to active. -
code/branches/questsystem3/src/orxonox/objects/quest/QuestEffect.cc
r2352 r2375 73 73 { 74 74 bool check = true; 75 76 COUT(4) << "Invoking QuestEffects on player: " << player << " ." << std::endl; 75 77 76 78 for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
Note: See TracChangeset
for help on using the changeset viewer.