Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2008, 9:52:12 AM (17 years ago)
Author:
dafrick
Message:

Started with XMLPort…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem/src/orxonox/objects/QuestDescription.h

    r2021 r2068  
    3333
    3434#include "core/BaseObject.h"
     35#include "core/XMLPort.h"
    3536
    3637namespace orxonox {
     
    5051            ~QuestDescription();
    5152           
     53            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     54           
    5255            inline const std::string & getTitle(void) const //!< Returns the title.
    5356                { return this->title_; }
     
    5760        private:
    5861            void initialize(void);
     62           
     63            inline void setTitle(const std::string & title) //!< Sets the title.
     64                { this->title_ = title; }
     65            inline void setDescription(const std::string & description) //!< Sets the description text.
     66                { this->description_ = description; }
    5967               
    60             std::string title_;
    61             std::string description_;
     68            std::string title_; //!< The title.
     69            std::string description_; //!< The description.
    6270   
    6371    };
Note: See TracChangeset for help on using the changeset viewer.