Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialogue_2/Dialog.cc @ 11535

Last change on this file since 11535 was 11515, checked in by kuchlert, 7 years ago

Grundgeruest erstellt

File size: 634 bytes
Line 
1#include "Dialog.h"
2
3RegisterClass(Dialog);
4
5namespace orxonox{
6        //Constructor:
7        Dialog::Dialog(Context* context) : BaseObject(context)
8        {
9                RegisterObjext(Dialog);
10        }
11
12        void Dialog::XMLPort(Element& xmlelement, XMLPort::Mode mode)
13        {
14                SUPER(Dialog, XMLPort, xmlelement, mode);
15
16                XMLPortParam(Dialog, "name", setName, getName, xmlelement, mode);
17                XMLPortParam(Dialog, "currentQuestionId", setCurrentQuestion, getCurrentQuestion, xmlelement, mode);
18                XMLPortObject(Dialog, Question, "Questions", addQuestion, getQuestion, xmlelement,mode);
19                XMLPortObject(Dialog, Awnser, "Awnsers", addAwnser, getAwnser, xmlelement, mode);
20        }
21
22       
23}
Note: See TracBrowser for help on using the repository browser.