- Timestamp:
- Aug 4, 2011, 12:51:24 PM (13 years ago)
- Location:
- code/branches/ai2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/data/levels/missionOne.oxw
r8821 r8823 105 105 </SimpleNotification> 106 106 107 <SimpleNotification message="Right click on the next target." meh="true">107 <SimpleNotification message="Right click on the next target." broadcast="true"> 108 108 <events> 109 109 <trigger> … … 116 116 <!-- BRIEFING END--> 117 117 <!-- TODO: does NOT work. Intended effect: pawn death causes message to appear (and probably the next box) --> 118 <SimpleNotification message="Right click on the next target." meh="true">118 <SimpleNotification message="Right click on the next target." broadcast="true"> 119 119 <events> 120 120 <trigger> -
code/branches/ai2/src/modules/notifications/NotificationDispatcher.cc
r8821 r8823 84 84 85 85 XMLPortParam(NotificationDispatcher, "sender", setSender, getSender, xmlelement, mode); 86 XMLPortParam(NotificationDispatcher, " meh", setBroadcasting, isBroadcasting, xmlelement, mode);86 XMLPortParam(NotificationDispatcher, "broadcast", setBroadcasting, isBroadcasting, xmlelement, mode); 87 87 88 88 XMLPortEventSink(NotificationDispatcher, BaseObject, "trigger", trigger, xmlelement, mode); … … 111 111 void NotificationDispatcher::broadcast(void) 112 112 { 113 COUT(0) << "meh" << endl;114 113 // TODO: Needed? 115 114 const std::string message = this->createNotificationMessage(); -
code/branches/ai2/src/modules/notifications/NotificationDispatcher.h
r8821 r8823 50 50 A NotificationDispatcher is an entity that, upon being triggered, dispatches (or sends) a specified @ref orxonox::Notification "Notification". 51 51 52 There a te two parameter to be set:52 There are two parameter to be set: 53 53 - The @b sender . The sender specifies the part of Orxonox the sent @ref orxonox::Notification "Notification" comes from. The default value is set by the classes implementing NotificationDispatcher. 54 54 - The @b broadcast . Specifies whether messages are broadcast (i.e. sent to all clients) or just sent to a specific player.
Note: See TracChangeset
for help on using the changeset viewer.