Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 8:32:10 PM (16 years ago)
Author:
landauf
Message:
  • adopted quest classes to the new hierarchy (with a creator pointer)
  • added "RegisterObject(…)" in all constructors and "virtual" to all destructors
File:
1 edited

Legend:

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

    r2091 r2092  
    2626 *
    2727 */
    28  
     28
    2929#ifndef _QuestItem_H__
    3030#define _QuestItem_H__
     
    3838namespace orxonox {
    3939
    40    
     40
    4141    /**
    4242    @brief
     
    4848    class QuestItem : public BaseObject
    4949    {
    50    
     50
    5151        public:
    52             QuestItem();
     52            QuestItem(BaseObject* creator);
    5353            virtual ~QuestItem();
    54            
     54
    5555            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    56            
     56
    5757            inline const std::string & getId(void) const //!< Returns the id of this quest.
    5858                { return this->id_; }
     
    6060                { return this->description_; }
    6161            //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.
    62                
     62
    6363            static bool isId(const std::string & id); //!< Checks whether a given id is valid.
    64            
     64
    6565        protected:
    6666            void setId(const std::string & id);
    6767            inline void setDescription(QuestDescription* description)
    6868                { this->description_ = description; }
    69            
     69
    7070        private:
    7171            std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure
    7272            QuestDescription* description_; //!< The description of the QuestItem.
    73            
     73
    7474            void initialize(void); //!< Initializes the object.
    75    
     75
    7676    };
    7777
Note: See TracChangeset for help on using the changeset viewer.