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.cc

    r2021 r2068  
    3737    QuestDescription::QuestDescription() : BaseObject()
    3838    {
    39        
     39        this->initialize();
    4040    }
    4141       
     42    /**
     43    @brief
     44        Constructor. Creates a new QuestDescription object and adds a title and description.
     45    @param title
     46    @param description
     47    */
    4248    QuestDescription::QuestDescription(std::string title, std::string description) : BaseObject()
    4349    {
    44         initialize();
     50        this->initialize();
    4551        this->title_ = title;
    4652        this->description_ = description;
     
    5056    {
    5157       
     58    }
     59   
     60    void QuestDescription::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     61    {
     62        SUPER(QuestDescription, XMLPort, xmlelement, mode);
     63   
     64        XMLPortParam(QuestDescription, "title", setTitle, getTitle, xmlelement, mode);
     65        XMLPortParam(QuestDescription, "description", setDescription, getDescription, xmlelement, mode);
     66       
     67        COUT(1) << "QuestDescription created!" << std::endl;
    5268    }
    5369   
Note: See TracChangeset for help on using the changeset viewer.