Rev | Line | |
---|
[11247] | 1 | |
---|
| 2 | #ifndef _Dialogue_H__ |
---|
| 3 | #define _Dialogue_H__ |
---|
| 4 | #include <string> |
---|
[11261] | 5 | //#include "core/BaseObject.h" |
---|
[11247] | 6 | |
---|
[11261] | 7 | #include "notifications/NotificationsPrereqs.h" |
---|
| 8 | |
---|
| 9 | #include "notifications/NotificationDispatcher.h" |
---|
| 10 | |
---|
[11247] | 11 | namespace orxonox{ |
---|
| 12 | |
---|
[11261] | 13 | class _NotificationsExport Dialogue: public NotificationDispatcher{ |
---|
[11247] | 14 | |
---|
| 15 | public: |
---|
| 16 | Dialogue(Context* context); //!< Default Constructor. |
---|
| 17 | virtual ~Dialogue(); //!< Destructor. |
---|
| 18 | |
---|
| 19 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 20 | |
---|
| 21 | const std::string& getMessage(void) |
---|
| 22 | { return this->message_; } |
---|
[11261] | 23 | // const std::string& getSpeaker(void) |
---|
| 24 | // {return this->speaker_;} |
---|
[11247] | 25 | |
---|
| 26 | protected: |
---|
| 27 | virtual const std::string& createNotificationMessage(void) |
---|
| 28 | { return this->message_; } |
---|
[11261] | 29 | // virtual const std::string& createNotificationSpeaker(void) |
---|
| 30 | // { return this->speaker_; } |
---|
[11247] | 31 | private: |
---|
| 32 | std::string message_; |
---|
[11261] | 33 | // std::string speaker_; |
---|
| 34 | |
---|
| 35 | void setMessage(const std::string& message) |
---|
| 36 | { this->message_ = message; } |
---|
| 37 | // void setSpeaker(const std::string& speaker) |
---|
| 38 | // { this->speaker_ = speaker;} |
---|
[11247] | 39 | } ; |
---|
| 40 | |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.