Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2010, 7:29:16 PM (14 years ago)
Author:
dafrick
Message:

Reviewing documentation fo Questsystem, moving documentation fully into doxygen.
Added some files to modules they belong to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/QuestHint.cc

    r7403 r7456  
    2828
    2929/**
    30     @file
     30    @file QuestHint.cc
    3131    @brief Implementation of the QuestHint class.
    3232*/
     
    3636#include "core/CoreIncludes.h"
    3737#include "core/XMLPort.h"
     38
     39#include "Quest.h"
     40#include "QuestDescription.h"
    3841#include "QuestManager.h"
    39 #include "QuestDescription.h"
    40 #include "Quest.h"
    4142
    4243namespace orxonox
     
    7172        SUPER(QuestHint, XMLPort, xmlelement, mode);
    7273
    73         QuestManager::getInstance().registerHint(this); //!< Registers the QuestHint with the QuestManager.
     74        QuestManager::getInstance().registerHint(this); // Registers the QuestHint with the QuestManager.
    7475
    7576        COUT(4) << "New QuestHint {" << this->getId() << "} created." << std::endl;
     
    8990    bool QuestHint::isActive(const PlayerInfo* player) const
    9091    {
    91         if(player == NULL) //!< NULL-Pointers are ugly!
     92        //TODO: Replace with asser.
     93        if(player == NULL) // NULL-Pointers are ugly!
    9294        {
    9395            ThrowException(Argument, "The input PlayerInfo* is NULL.");
     
    9597        }
    9698
    97         //! Find the player.
     99        // Find the player.
    98100        std::map<const PlayerInfo*, QuestHintStatus::Value>::const_iterator it = this->playerStatus_.find(player);
    99         if (it != this->playerStatus_.end()) //!< If the player is in the map.
    100         {
     101        if (it != this->playerStatus_.end()) // If the player is in the map.
    101102            return it->second;
    102         }
    103103
    104104        return QuestStatus::Inactive;
     
    115115    bool QuestHint::setActive(PlayerInfo* player)
    116116    {
    117         if(this->quest_->isActive(player)) //!< For a hint to get activated the quest must be active.
     117        if(this->quest_->isActive(player)) // For a hint to get activated the quest must be active.
    118118        {
    119             if(!(this->isActive(player)))  //!< If the hint is already active, activation is pointless.
     119            if(!(this->isActive(player)))  // If the hint is already active, activation is pointless.
    120120            {
    121121                this->playerStatus_[player] = QuestHintStatus::Active;
     
    145145    bool QuestHint::setQuest(Quest* quest)
    146146    {
    147         if(quest == NULL) //!< NULL-Pointer. Again..?
     147        //TODO: Replace with assert.
     148        if(quest == NULL) // NULL-Pointer. Again..?
    148149        {
    149150            COUT(2) << "The input Quest* is NULL." << std::endl;
Note: See TracChangeset for help on using the changeset viewer.