Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 1:39:50 PM (16 years ago)
Author:
dafrick
Message:

Added some more output.

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  
    108108        }
    109109
    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;
    111111        return true;
    112112    }
  • code/branches/questsystem3/src/orxonox/objects/quest/AddQuestHint.cc

    r2352 r2375  
    129129        }
    130130
    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;
    132132        return true;
    133133
  • code/branches/questsystem3/src/orxonox/objects/quest/AddReward.cc

    r2352 r2375  
    105105    bool AddReward::invoke(PlayerInfo* player)
    106106    {
     107        COUT(3) << "AddReward on player: " << player << " ." << std::endl;
     108       
    107109        bool check = true;
    108110        for ( std::list<Rewardable*>::iterator reward = this->rewards_.begin(); reward != this->rewards_.end(); ++reward )
     
    110112            check = check && (*reward)->reward(player);
    111113        }
     114       
     115        COUT(3) << "Rewardable successfully added to player." << player << " ." << std::endl;
    112116
    113117        return check;
  • code/branches/questsystem3/src/orxonox/objects/quest/Quest.cc

    r2352 r2375  
    377377        this->setStatus(player, questStatus::failed);
    378378       
     379        COUT(4) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." <<std::endl;
     380       
    379381        this->getDescription()->sendFailQuestNotification();
    380382        return true;
     
    394396        this->setStatus(player, questStatus::completed);
    395397       
     398        COUT(4) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." <<std::endl;
     399       
    396400        this->getDescription()->sendCompleteQuestNotification();
    397401        return true;
     
    413417            return false;
    414418        }
     419       
     420        COUT(4) << "Quest {" << this->getId() << "} is started for player: " << player << " ." <<std::endl;
    415421       
    416422        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  
    7373    {
    7474        bool check = true;
     75       
     76        COUT(4) << "Invoking QuestEffects on player: " << player << " ."  << std::endl;
    7577
    7678        for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
Note: See TracChangeset for help on using the changeset viewer.