Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Speaker added

File size: 892 bytes
RevLine 
[11247]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
[11261]12        Dialogue::Dialogue(Context* context):NotificationDispatcher(context){
[11247]13                RegisterObject(Dialogue);
14
[11261]15                this->setSender("dialogue");
16
17        this->setSyncMode(ObjectDirection::None);
[11247]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
[11270]28        XMLPortParam(Dialogue, "speaker", setSpeaker, getSpeaker, xmlelement, mode);
[11247]29        XMLPortParam(Dialogue, "message", setMessage, getMessage, xmlelement, mode);
[11261]30       
[11247]31    }
[11270]32    const std::string& Dialogue::createNotificationMessage(void)
33                {       
34                        dialogue_ = speaker_ + message_;
35                        return this->dialogue_ ;
36                }
[11247]37}
Note: See TracBrowser for help on using the repository browser.