Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2008, 11:56:40 PM (15 years ago)
Author:
landauf
Message:

merged questsystem2 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/quest/QuestItem.h

    r2096 r2261  
    2626 *
    2727 */
     28 
     29/**
     30    @file QuestItem.h
     31    @brief
     32    Definition of the QuestItem class.
     33   
     34    The QuestItem is the parent class of Quest and QuestHint.
     35*/
     36
    2837
    2938#ifndef _QuestItem_H__
     
    4251    /**
    4352    @brief
    44         Functions as a base class for Quest classes such as Quest or QuestHint.
     53        Functions as a base class for quest classes such as Quest or QuestHint.
    4554        Has a unique identifier and a description.
    4655    @author
     
    5463            virtual ~QuestItem();
    5564
    56             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     65            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestItem object through XML.
    5766
    58             inline const std::string & getId(void) const //!< Returns the id of this quest.
     67            /**
     68            @brief Returns the id of this QuestItem.
     69        @return Returns the id of the QuestItem.
     70            */
     71            inline const std::string & getId(void) const
    5972                { return this->id_; }
    60             inline const QuestDescription* getDescription(void) const //!< Returns the description of the QuestItem.
     73        /**
     74        @brief Returns the QuestDescription of the QuestItem.
     75        @return Returns a pointer to the QuestDescription object of the QuestItem.
     76        */
     77            inline const QuestDescription* getDescription(void) const
    6178                { return this->description_; }
    62             //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.
    6379
    6480            static bool isId(const std::string & id); //!< Checks whether a given id is valid.
    6581
    6682        protected:
    67             void setId(const std::string & id);
     83            void setId(const std::string & id); //!< Sets the id of the QuestItem.
     84           
     85            /**
     86            @brief Sets the description of the QuestItem.
     87            @param description The QuestDescription to be set.
     88            */
    6889            inline void setDescription(QuestDescription* description)
    6990                { this->description_ = description; }
     
    7192        private:
    7293            std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure
    73             QuestDescription* description_; //!< The description of the QuestItem.
    74 
    75             void initialize(void); //!< Initializes the object.
     94            QuestDescription* description_; //!< The QuestDescription of the QuestItem.
    7695
    7796    };
Note: See TracChangeset for help on using the changeset viewer.