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/Quest.h

    r7163 r7456  
    2828
    2929/**
    30     @file
     30    @file Quest.h
    3131    @brief Definition of the Quest class.
    32         The Quest is the parent class of LocalQuest and GlobalQuest.
     32        The Quest class is the parent class of @ref orxonox::LocalQuest "LocalQuest" and @ref orxonox::GlobalQuest "GlobalQuest".
     33    @ingroup Questsystem
    3334*/
    3435
     
    4546    namespace QuestStatus
    4647    {
    47         //!Different states of a Quest.
     48        //! Different states of a @ref orxonox::Quest "Quest".
    4849        enum Value
    4950        {
     
    5758    /**
    5859    @brief
    59         Represents a Quest in the game.
    60         A Quest has a list of subquests and a parentquest (if it is not a rootquest).
     60        Represents a Quest in the game. A Quest is a task that the player can (or has to) fulfill upon which he will (possibly) receive some kind of reward.
     61
     62        A Quest can have a list of sub-quests and has a parent-quest (if it is not a root-quest).
    6163        Each Quest exists only once but it has a different status (inactive, active, failed or completed) for each player.
    62         A Quest has several hints (QuestHint) that can be unlocked through QuestEffects and then display aid in solving the Quest.
    63         A Quest has a list of QuestEffects that are invoked when the quest is failed and also a list of QuestEffects that are invoked, when the Quest is completed.
     64        A Quest can have several hints (QuestHint) that can be unlocked through @ref orxonox::QuestEffect "QuestEffects" and then display aid in solving the Quest.
     65        A Quest can have a list of @ref orxonox::QuestEffect "QuestEffects" that are invoked when the quest is failed and also a list of @ref orxonox::QuestEffect "QuestEffects" that are invoked, when the Quest is completed.
    6466
    65         Quest itself should not be instantiated, if you want to create a quest either go for LocalQuest or GlobalQuest, whichever suits you needs better.
     67        Quest itself should not be instantiated, if you want to create a quest either use LocalQuest or GlobalQuest, whichever suits you needs better.
    6668    @author
    6769        Damian 'Mozork' Frick
     
    7779
    7880            /**
    79             @brief Returns the parentquest of the Quest.
    80             @return Returns a pointer to the parentquest of the Quest.
     81            @brief Returns the parent-quest of the Quest.
     82            @return Returns a pointer to the parent-quest of the Quest.
    8183            */
    8284            inline Quest* getParentQuest(void) const
     
    8486
    8587            /**
    86             @brief Returns the list of subquests.
    87             @return Returns a reference to the list of subquests of the quest.
     88            @brief Returns the list of sub-quests.
     89            @return Returns a reference to the list of sub-quests of the quest.
    8890            */
    8991            inline const std::list<Quest*> & getSubQuestList(void) const
     
    113115            virtual bool isCompletable(const PlayerInfo* player) const = 0; //!< Checks whether the Quest can be completed.
    114116
    115             const Quest* getSubQuest(unsigned int index) const; //!<Returns the subquest at the given index.
     117            const Quest* getSubQuest(unsigned int index) const; //!<Returns the sub-quest at the given index.
    116118            const QuestHint* getHint(unsigned int index) const; //!< Returns the QuestHint at the given index.
    117119            const QuestEffect* getFailEffect(unsigned int index) const; //!< Returns the fail QuestEffect at the given index.
     
    136138
    137139        private:
    138             Quest* parentQuest_; //!< Pointer to the parentquest.
    139             std::list<Quest*> subQuests_; //!< List of all the subquests.
     140            Quest* parentQuest_; //!< Pointer to the parent-quest.
     141            std::list<Quest*> subQuests_; //!< List of all the sub-quests.
    140142
    141143            std::list<QuestHint*> hints_; //!< A list of all the QuestHints tied to this Quest.
     
    146148            std::list<QuestListener*> listeners_; //!< A list of QuestListeners, that listen to what exactly happens with this Quest.
    147149
    148             bool setParentQuest(Quest* quest); //!< Sets the parentquest of the Quest.
    149             bool addSubQuest(Quest* quest); //!< Adds a subquest to the Quest.
     150            bool setParentQuest(Quest* quest); //!< Sets the parent-quest of the Quest.
     151            bool addSubQuest(Quest* quest); //!< Adds a sub-quest to the Quest.
    150152            bool addHint(QuestHint* hint); //!< Add a QuestHint to the list of QuestHints.
    151153            bool addFailEffect(QuestEffect* effect); //!< Adds an QuestEffect to the list of fail QuestEffects.
Note: See TracChangeset for help on using the changeset viewer.