Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/Answer.h @ 11634

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

fixed addQuestion and addAnswer in Dialog

File size: 717 bytes
Line 
1#ifndef _Answer_H__
2#define _Answer_H__
3
4#include "core/BaseObject.h"
5#include "DialogPrereqs.h"
6#include "core/XMLPort.h"
7#include "core/CoreIncludes.h"
8#include <string>
9
10namespace orxonox
11{
12       
13        class _DialogExport Answer : public BaseObject
14        {
15                public:
16                        Answer(Context* context);
17                       
18                        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
19
20                        void setAnswerId(std::string answerId); 
21                        std::string getAnswerId();
22
23                        void setNextQuestion(std::string nextId); // "end" um den dialog zu beenden
24                        std::string getNextQuestion();
25
26                        void setAnswer(std::string awns);
27                        std::string getAnswer();
28
29                private:
30                        std::string answerId_;
31                        std::string answer_;
32                        std::string nextQuestionId_;
33        };
34}
35
36#endif
Note: See TracBrowser for help on using the repository browser.