Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

some bug fixed most not

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