- Timestamp:
- Oct 31, 2016, 4:11:28 PM (8 years ago)
- Location:
- code/branches/Dialog_HS16
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialog_HS16/data/levels/missionOne.oxw
r11247 r11261 24 24 gametype = "Mission" 25 25 > 26 <Dialogue message="test">27 </Dialogue>28 26 <templates> 29 27 <Template link=lodtemplate_default /> … … 33 31 <NotificationQueueCEGUI 34 32 name="narrative" 35 targets="simpleNotification "33 targets="simpleNotification,dialogue" 36 34 size=3 37 35 displayTime=3.9 … … 42 40 displaySize="0.6, 0, 0, 0" 43 41 /> 42 44 43 <Scene 45 44 ambientlight = "0.8, 0.8, 0.8" … … 372 371 373 372 <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/> 374 < SimpleNotificationmessage="Press (F3) to see your mission briefing.">373 <Dialogue message="Press (F3) to see your mission briefing."> 375 374 <events> 376 375 <trigger> … … 378 377 </trigger> 379 378 </events> 380 </ SimpleNotification>379 </Dialogue> 381 380 382 381 <!-- Blinking Billboard should be replaced with WAYPOINT --> … … 411 410 412 411 <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/> 413 < Dialoguemessage="Let's fly to the blinking light.">412 <SimpleNotification message="Let's fly to the blinking light."> 414 413 <events> 415 414 <trigger> … … 417 416 </trigger> 418 417 </events> 419 </ Dialogue>418 </SimpleNotification> 420 419 421 420 <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/> … … 434 433 435 434 436 < SimpleNotificationmessage="Three arrows just appeared.">435 <Dialogue message="Three arrows just appeared."> 437 436 <events> 438 437 <trigger> … … 440 439 </trigger> 441 440 </events> 442 </ SimpleNotification>441 </Dialogue> 443 442 444 443 <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/> -
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.