| Rev | Line | |
|---|
| [11607] | 1 | #ifndef _AnswerID_H__ |
|---|
| 2 | #define _AnswerID_H__ |
|---|
| 3 | |
|---|
| [11579] | 4 | #include "core/XMLPort.h" |
|---|
| 5 | #include "core/BaseObject.h" |
|---|
| [11607] | 6 | #include "core/CoreIncludes.h" |
|---|
| [11579] | 7 | |
|---|
| 8 | #include <string> |
|---|
| 9 | |
|---|
| 10 | namespace orxonox{ |
|---|
| [11656] | 11 | |
|---|
| 12 | /** |
|---|
| 13 | @brief |
|---|
| 14 | container class for answerids in xml |
|---|
| 15 | |
|---|
| 16 | */ |
|---|
| 17 | |
|---|
| [11579] | 18 | class AnswerId : public BaseObject |
|---|
| 19 | { |
|---|
| 20 | public: |
|---|
| 21 | AnswerId(Context* context); |
|---|
| [11611] | 22 | |
|---|
| [11579] | 23 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
|---|
| 24 | |
|---|
| [11644] | 25 | void setId(const std::string& Id); //allows to set Id, only use in xmlPort for initializing AnswerIds in lvl files |
|---|
| 26 | const std::string& getId() const; //allows to get Id, used in xmlPort |
|---|
| [11579] | 27 | |
|---|
| 28 | private: |
|---|
| [11656] | 29 | std::string id_; //!< id of one answer |
|---|
| [11579] | 30 | }; |
|---|
| [11607] | 31 | } |
|---|
| 32 | |
|---|
| 33 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.