Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/Question.h @ 11642

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

erste version bei der listenauswahl funktioniert

File size: 964 bytes
Line 
1#ifndef _Question_H__
2#define _Question_H__
3
4#include "core/BaseObject.h"
5#include "DialogPrereqs.h"
6#include "AnswerId.h"
7#include "core/XMLPort.h"
8#include "core/CoreIncludes.h"
9
10
11#include <string>
12
13namespace orxonox
14{
15        class _DialogExport Question : public BaseObject
16        {
17                public:
18                        Question(Context* context);
19
20                        virtual void XMLPort(Element& xmelement, XMLPort::Mode mode);
21
22                        void setQuestionId(std::string Id);
23                        std::string getQuestionId();
24
25                        void setQuestion(std::string question);
26                        std::string getQuestion();
27
28                        void addAnswerId(AnswerId* answerId); //leer lassen um Dialog zu beenden
29                        AnswerId* getAnswerId(unsigned int index) const;
30
31                       
32                        //braucht es getAnswerId oder reicht es andere funktion anzugeben,
33                        // die sowieso gebraucht wird?
34
35                        std::vector<std::string>* getAnswerIds(); //returnt vektor mit allen Ids
36
37
38
39                private: 
40                        std::string questionId_;
41                        std::string question_;
42                        std::vector<std::string> answerIds_;
43        };
44}
45
46#endif
Note: See TracBrowser for help on using the repository browser.