Line | |
---|
1 | #include <vector> |
---|
2 | #include <string> |
---|
3 | |
---|
4 | #include "NextQuestion.h" |
---|
5 | #include "core/XMLPort.h" |
---|
6 | |
---|
7 | namespace orxonox{ |
---|
8 | |
---|
9 | RegisterClass(NextQuestion); |
---|
10 | |
---|
11 | vector<NextQuestion> nextquestion; |
---|
12 | |
---|
13 | void NextQuestion::setanswers(std::string option1, std::string option2, std::string option3){ |
---|
14 | options.at(0)=option1; |
---|
15 | options.at(1)=option2; |
---|
16 | options.at(2)=option3; |
---|
17 | } |
---|
18 | |
---|
19 | vector<std::string> NextQuestion::getanswers(void){ |
---|
20 | return options; |
---|
21 | } |
---|
22 | |
---|
23 | int NextQuestion::getnumOptions(){ |
---|
24 | return options.size(); |
---|
25 | } |
---|
26 | |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.