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

    r2146 r2159  
    8787            inline const std::list<Quest*> & getSubQuestList(void) const //!< Returns the list of sub quests.
    8888                { return this->subQuests_; }
     89            inline const std::list<QuestHint*> & getHintsList(void) const //!< Returns the list of all hints of this quest.
     90                { return this->hints_; }
    8991
    9092            bool isInactive(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'inactive'.
     
    98100
    99101        protected:
    100             void initialize(void); //!< Initializes the object.
    101 
    102102            virtual bool isStartable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be started.
    103103            virtual bool isFailable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be failed.
    104104            virtual bool isCompletable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be completed.
    105105
    106             bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest.
    107             bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest.
    108             bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.
    109             bool addFailEffect(QuestEffect* effect); //!< Adds an effect to the list of failEffects.
    110             bool addCompleteEffect(QuestEffect* effect); //!< Adds an effect to the list of completeEffects.
    111 
    112106            const Quest* getParentQuest(void); //!< Returns the parent quest of the quest.
    113             const Quest* getSubQuests(unsigned int index) const; //!<Returns the sub quest of the given index.
    114             const QuestHint* getHints(unsigned int index) const; //!< Returns the hint of the given index.
    115             const QuestEffect* getFailEffects(unsigned int index) const; //!< Returns the failEffect of the given index.
    116             const QuestEffect* getCompleteEffects(unsigned int index) const; //!Returns the completeEffect of the given index.
     107            const Quest* getSubQuest(unsigned int index) const; //!<Returns the sub quest of the given index.
     108            const QuestHint* getHint(unsigned int index) const; //!< Returns the hint of the given index.
     109            const QuestEffect* getFailEffect(unsigned int index) const; //!< Returns the failEffect of the given index.
     110            const QuestEffect* getCompleteEffect(unsigned int index) const; //!< Returns the completeEffect of the given index.
     111            inline std::list<QuestEffect*> & getFailEffectList(void) //!< Returns the list of failEffects.
     112                { return this->failEffects_; }
     113            inline std::list<QuestEffect*> & getCompleteEffectList(void) //!< Returns the list of completeEffects.
     114                { return this->completeEffects_; }
    117115
    118116            virtual questStatus::Enum getStatus(const ControllableEntity* player) const = 0; //!< Returns the status of the quest for a specific player.
    119117            virtual bool setStatus(ControllableEntity* player, const questStatus::Enum & status) = 0; //!< Changes the status for a specific player.
    120 
     118           
     119        private:
    121120            Quest* parentQuest_; //!< Pointer to the parent quest.
    122121            std::list<Quest*> subQuests_; //!< List of all the sub quests.
     
    126125            std::list<QuestEffect*> failEffects_; //!< A list of all effects to be invoked, when the quest has been failed.
    127126            std::list<QuestEffect*> completeEffects_; //!< A list of effects to be invoked, when the quest has been completed.
     127           
     128            bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest.
     129            bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest.
     130            bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.
     131            bool addFailEffect(QuestEffect* effect); //!< Adds an effect to the list of failEffects.
     132            bool addCompleteEffect(QuestEffect* effect); //!< Adds an effect to the list of completeEffects.
    128133
    129134    };
Note: See TracChangeset for help on using the changeset viewer.