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/ChangeQuestStatus.cc

    r2105 r2159  
    2727 */
    2828
     29/**
     30    @file ChangeQuestStatus.cc
     31    @brief
     32        Implementation of the ChangeQuestStatus class.
     33*/
     34
    2935#include "OrxonoxStableHeaders.h"
    3036#include "ChangeQuestStatus.h"
     
    3642namespace orxonox {
    3743
     44    /**
     45    @brief
     46        Constructor. Registers the object.
     47    */
    3848    ChangeQuestStatus::ChangeQuestStatus(BaseObject* creator) : QuestEffect(creator)
    3949    {
     
    4959    }
    5060
    51     void ChangeQuestStatus::setQuestId(const std::string & id)
     61    /**
     62    @brief
     63        Sets the id of the quest the effect chagnes the status of.
     64    @param id
     65        The id of the quest.
     66    @return
     67        Returns true if successful.
     68    */
     69    bool ChangeQuestStatus::setQuestId(const std::string & id)
    5270    {
    5371        if(!QuestItem::isId(id))
    5472        {
    5573            COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;
    56             return;
     74            return false;
    5775        }
     76       
    5877        this->questId_ = id;
     78        return true;
    5979    }
    6080
     81    /**
     82    @brief
     83        Method for creating a ChangeQuestStatus object through XML.
     84    */
    6185    void ChangeQuestStatus::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    6286    {
Note: See TracChangeset for help on using the changeset viewer.