Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/AnswerId.cc @ 11611

Last change on this file since 11611 was 11611, checked in by kuchlert, 6 years ago

fixed addQuestion and addAnswer in Dialog

File size: 502 bytes
Line 
1#include "AnswerId.h"
2#include "core/CoreIncludes.h"
3
4
5namespace orxonox{
6
7        RegisterClass(AnswerId);
8
9        AnswerId::AnswerId(Context* context) : BaseObject(context)
10        {
11                RegisterObject(AnswerId);
12        }
13
14        void AnswerId::XMLPort(Element& xmlelement, XMLPort::Mode mode)
15        {
16                SUPER(AnswerId, XMLPort, xmlelement, mode);
17
18                XMLPortParam(AnswerId, "Id", setId, getId, xmlelement, mode);
19        }
20
21        void AnswerId::setId(std::string id)
22        {
23                this->id_ = id;
24        }
25       
26        std::string AnswerId::getId()
27        {
28                return this->id_;
29        }
30}
Note: See TracBrowser for help on using the repository browser.