Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS16/src/modules/notifications/dispatchers/Dialogue.h @ 11270

Last change on this file since 11270 was 11270, checked in by dmoritz, 8 years ago

Speaker added

File size: 1.1 KB
Line 
1
2#ifndef _Dialogue_H__
3#define _Dialogue_H__
4#include <string>      
5//#include "core/BaseObject.h"
6
7#include "notifications/NotificationsPrereqs.h"
8
9#include "notifications/NotificationDispatcher.h"
10
11namespace orxonox{
12
13class _NotificationsExport Dialogue: public NotificationDispatcher{
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_; }
23                const std::string& getSpeaker(void)
24                        {return this->speaker_;}
25
26    protected:
27        virtual const std::string& createNotificationMessage(void);
28               
29       
30    private:
31                std::string message_;
32                std::string speaker_;
33                std::string dialogue_;
34
35                void setSpeaker(const std::string& speaker)
36                { this->speaker_ = speaker;}
37                void setMessage(const std::string& message)
38                { this->message_ = message; }
39           
40        } ;       
41
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.