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

    r2096 r2261  
    2727 */
    2828
     29/**
     30    @file QuestDescription.h
     31    @brief
     32    Definition of the QuestDescription class.
     33*/
     34
    2935#ifndef _QuestDescription_H__
    3036#define _QuestDescription_H__
     
    4349        This class is a description of a QuestItem.
    4450        It holds a title and a description.
     51       
     52        Creating a QuestDescription through XML goes as follows:
     53       
     54        <QuestDescription title="Title" description="Description Text" />
    4555    @author
    4656        Damian 'Mozork' Frick
     
    5262            virtual ~QuestDescription();
    5363
    54             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     64            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestDescription object through XML.
    5565
    56             inline const std::string & getTitle(void) const //!< Returns the title.
     66        /**
     67        @brief Returns the title.
     68        @return Returns a string containing the title of the QuestDescription.
     69        */
     70            inline const std::string & getTitle(void) const
    5771                { return this->title_; }
    58             inline const std::string & getDescription(void) const //!< Returns the description text.
     72       
     73        /**
     74        @brief Returns the description text.
     75        @return Returns a string containing the description text of the QuestDescription.
     76        */
     77            inline const std::string & getDescription(void) const
    5978                { return this->description_; }
    6079
    6180        private:
    62             void initialize(void);
    63 
    64             inline void setTitle(const std::string & title) //!< Sets the title.
    65                 { this->title_ = title; }
    66             inline void setDescription(const std::string & description) //!< Sets the description text.
    67                 { this->description_ = description; }
    68 
    6981            std::string title_; //!< The title.
    7082            std::string description_; //!< The description.
     83
     84            /**
     85            @brief Sets the title.
     86            @param title The title to be set.
     87            */
     88            inline void setTitle(const std::string & title)
     89                { this->title_ = title; }
     90               
     91        /**
     92            @brief Sets the description text.
     93            @param description The description text to be set.
     94            */
     95            inline void setDescription(const std::string & description)
     96                { this->description_ = description; }
    7197
    7298    };
Note: See TracChangeset for help on using the changeset viewer.