Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11317 was 11317, checked in by dmoritz, 7 years ago

Picture added

File size: 1.3 KB
RevLine 
[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]11namespace orxonox{
12
[11261]13class _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)
[11317]22                        { return this->message_; }
[11270]23                const std::string& getSpeaker(void)
24                        {return this->speaker_;}
[11317]25            const std::string& getPortrait(void)
26                        { return this->portrait_;}
27
[11247]28    protected:
[11270]29        virtual const std::string& createNotificationMessage(void);
[11317]30        virtual void update(void);
[11270]31       
[11247]32    private:
33                std::string message_;
[11270]34                std::string speaker_;
35                std::string dialogue_;
[11317]36                std::string portrait_;
[11261]37
[11270]38                void setSpeaker(const std::string& speaker)
39                { this->speaker_ = speaker;}
[11261]40                void setMessage(const std::string& message)
41                { this->message_ = message; }
[11317]42            void setPortrait(const std::string& portrait)
43                { this->portrait_ = portrait;}
[11247]44        } ;       
45}
46
47#endif
Note: See TracBrowser for help on using the repository browser.