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