Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 9:03:51 PM (16 years ago)
Author:
landauf
Message:

converted tabs to spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/QuestItem.h

    r2092 r2093  
    4141    /**
    4242    @brief
    43         Functions as a base class for Quest classes such as Quest or QuestHint.
    44         Has a unique identifier and a description.
     43        Functions as a base class for Quest classes such as Quest or QuestHint.
     44        Has a unique identifier and a description.
    4545    @author
    46         Damian 'Mozork' Frick
     46        Damian 'Mozork' Frick
    4747    */
    4848    class QuestItem : public BaseObject
    4949    {
    5050
    51         public:
     51        public:
    5252            QuestItem(BaseObject* creator);
    53             virtual ~QuestItem();
     53            virtual ~QuestItem();
    5454
    55             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     55            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5656
    57             inline const std::string & getId(void) const //!< Returns the id of this quest.
     57            inline const std::string & getId(void) const //!< Returns the id of this quest.
    5858                { return this->id_; }
    59             inline const QuestDescription* getDescription(void) const //!< Returns the description of the QuestItem.
     59            inline const QuestDescription* getDescription(void) const //!< Returns the description of the QuestItem.
    6060                { return this->description_; }
    61             //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.
     61            //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.
    6262
    63             static bool isId(const std::string & id); //!< Checks whether a given id is valid.
     63            static bool isId(const std::string & id); //!< Checks whether a given id is valid.
    6464
    65         protected:
    66             void setId(const std::string & id);
    67             inline void setDescription(QuestDescription* description)
     65        protected:
     66            void setId(const std::string & id);
     67            inline void setDescription(QuestDescription* description)
    6868                { this->description_ = description; }
    6969
    70         private:
    71             std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure
    72             QuestDescription* description_; //!< The description of the QuestItem.
     70        private:
     71            std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure
     72            QuestDescription* description_; //!< The description of the QuestItem.
    7373
    74             void initialize(void); //!< Initializes the object.
     74            void initialize(void); //!< Initializes the object.
    7575
    7676    };
Note: See TracChangeset for help on using the changeset viewer.