Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS16/src/modules/notifications/dispatchers/Dialogue.cc @ 11292

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

Speaker added

File size: 892 bytes
Line 
1
2
3#include "Dialogue.h"
4#include "core/CoreIncludes.h"
5#include "core/EventIncludes.h"
6#include "core/XMLPort.h"
7
8namespace orxonox{
9       
10        RegisterClass(Dialogue);
11
12        Dialogue::Dialogue(Context* context):NotificationDispatcher(context){
13                RegisterObject(Dialogue);
14
15                this->setSender("dialogue");
16
17        this->setSyncMode(ObjectDirection::None);
18        }
19
20        Dialogue::~Dialogue()
21    {
22
23    }
24    void Dialogue::XMLPort(Element& xmlelement, XMLPort::Mode mode)
25    {
26        SUPER(Dialogue, XMLPort, xmlelement, mode);
27
28        XMLPortParam(Dialogue, "speaker", setSpeaker, getSpeaker, xmlelement, mode);
29        XMLPortParam(Dialogue, "message", setMessage, getMessage, xmlelement, mode);
30       
31    }
32    const std::string& Dialogue::createNotificationMessage(void)
33                {       
34                        dialogue_ = speaker_ + message_;
35                        return this->dialogue_ ;
36                }
37}
Note: See TracBrowser for help on using the repository browser.