35 #ifndef _NotificationDispatcher_H__ 36 #define _NotificationDispatcher_H__ 82 virtual void XMLEventPort(Element& xmlelement,
XMLPort::Mode mode)
override;
89 {
return this->sender_; }
95 { this->sender_ = sender; }
102 {
return this->bBroadcast_; }
108 { this->bBroadcast_ = v; }
111 void broadcastHelper(
void);
112 void dispatch(
unsigned int clientId);
113 bool trigger(
bool triggered,
BaseObject* trigger);
119 void registerVariables(
void);
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
std::string BLANKSTRING
A blank string (""). Used to return a blank string by reference.
Definition: StringUtils.cc:46
This class is the base class of all the Objects in the universe that need to be synchronised over the...
Definition: Synchronisable.h:142
virtual const std::string & createNotificationMessage(void)
Creates the notification message that should be sent upon the NotificationDispatcher triggering...
Definition: NotificationDispatcher.h:126
void setSender(const std::string &sender)
Set the sender of the Notification dispatched by this NotificationDispatcher.
Definition: NotificationDispatcher.h:94
::std::string string
Definition: gtest-port.h:756
A NotificationDispatcher is an entity that, upon being triggered, dispatches (or sends) a specified N...
Definition: NotificationDispatcher.h:75
const std::string & getSender(void) const
Get the sender of the Notification dispatched by this NotificationDispatcher.
Definition: NotificationDispatcher.h:88
bool bBroadcast_
Whether the NotificationDispatcher is broadcasting.
Definition: NotificationDispatcher.h:117
void setBroadcasting(bool v)
Set the NotificationDispatcher to broadcast.
Definition: NotificationDispatcher.h:107
#define _NotificationsExport
Definition: NotificationsPrereqs.h:60
std::string sender_
The name of the sender of the Notification dispatched by this NotificationDispatcher.
Definition: NotificationDispatcher.h:116
bool isBroadcasting(void) const
Check whether the NotificationDispatcher is set to broadcast.
Definition: NotificationDispatcher.h:101
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Mode
Definition: CorePrereqs.h:102
Declaration of BaseObject, the base class of all objects in Orxonox.