Changeset 11261 for code/branches/Dialog_HS16/src/modules
- Timestamp:
- Oct 31, 2016, 4:11:28 PM (8 years ago)
- Location:
- code/branches/Dialog_HS16/src/modules/notifications
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialog_HS16/src/modules/notifications/NotificationDispatcher.h
r11099 r11261 126 126 virtual const std::string& createNotificationMessage(void) 127 127 { return BLANKSTRING; } 128 virtual const std::string& createNotificationSpeaker(void) 129 { return BLANKSTRING; } 128 130 129 131 }; -
code/branches/Dialog_HS16/src/modules/notifications/NotificationManager.h
r11071 r11261 94 94 private: 95 95 std::string message_; //!< The Notification message. 96 std::string sender_; //!< The sender of the notification .96 std::string sender_; //!< The sender of the notifications. 97 97 NotificationMessageType type_; //!< The type of the notification. 98 98 -
code/branches/Dialog_HS16/src/modules/notifications/dispatchers/Dialogue.cc
r11247 r11261 10 10 RegisterClass(Dialogue); 11 11 12 Dialogue::Dialogue(Context* context): BaseObject(context){12 Dialogue::Dialogue(Context* context):NotificationDispatcher(context){ 13 13 RegisterObject(Dialogue); 14 15 this->setSender("dialogue"); 16 17 this->setSyncMode(ObjectDirection::None); 18 14 19 15 20 } … … 24 29 25 30 XMLPortParam(Dialogue, "message", setMessage, getMessage, xmlelement, mode); 26 orxout()<<"blablab"; 31 //XMLPortParam(Dialogue, "speaker", setSpeaker, getSpeaker, xmlelement, mode); 32 27 33 } 28 34 } -
code/branches/Dialog_HS16/src/modules/notifications/dispatchers/Dialogue.h
r11247 r11261 3 3 #define _Dialogue_H__ 4 4 #include <string> 5 #include "core/BaseObject.h" 5 //#include "core/BaseObject.h" 6 7 #include "notifications/NotificationsPrereqs.h" 8 9 #include "notifications/NotificationDispatcher.h" 6 10 7 11 namespace orxonox{ 8 12 9 class Dialogue: public BaseObject{13 class _NotificationsExport Dialogue: public NotificationDispatcher{ 10 14 11 15 public: … … 17 21 const std::string& getMessage(void) 18 22 { return this->message_; } 19 20 void setMessage(const std::string& message) 21 { this->message_ = message; } 23 // const std::string& getSpeaker(void) 24 // {return this->speaker_;} 22 25 23 26 protected: 24 27 virtual const std::string& createNotificationMessage(void) 25 28 { return this->message_; } 29 // virtual const std::string& createNotificationSpeaker(void) 30 // { return this->speaker_; } 26 31 private: 27 32 std::string message_; 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;} 28 39 } ; 29 40
Note: See TracChangeset
for help on using the changeset viewer.