Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2008, 7:58:49 PM (15 years ago)
Author:
dafrick
Message:

Completed documentation of finished classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/quest/AddQuestHint.cc

    r2146 r2159  
    2727 */
    2828
     29/**
     30    @file AddQuestHint.cc
     31    @brief
     32        Implementation of the AddQuestHint class.
     33*/
     34
    2935#include "OrxonoxStableHeaders.h"
    3036#include "AddQuestHint.h"
     
    4248    CreateFactory(AddQuestHint);
    4349
     50    /**
     51    @brief
     52        Constructor. Registers the object.
     53    */
    4454    AddQuestHint::AddQuestHint(BaseObject* creator) : QuestEffect(creator)
    4555    {
     
    5565    }
    5666
     67    /**
     68    @brief
     69        Method for creating a AddQuestHint object through XML.
     70    */
    5771    void AddQuestHint::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    5872    {
     
    6377    }
    6478
     79    /**
     80    @brief
     81        Sets the id of the quest hint to be added to the player the effect is invoked on.
     82    @param id
     83        The QuestHint id.
     84    @param
     85        Returns true if successful.
     86    */
    6587    inline void AddQuestHint::setHintId(const std::string & id)
    6688    {
     
    6890        {
    6991            COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;
    70             return;
     92            return false;
    7193        }
     94       
    7295        this->hintId_ = id;
     96        return true;
    7397    }
    7498
     
    83107    bool AddQuestHint::invoke(ControllableEntity* player)
    84108    {
    85         if(player == NULL)
     109        if(player == NULL) //!< NULL-pointers are evil!
    86110        {
    87111            COUT(2) << "The input player is NULL." << std::endl;
Note: See TracChangeset for help on using the changeset viewer.