35 #ifndef _NotificationListener_H__ 36 #define _NotificationListener_H__
static const std::string COMMAND_CLEAR
Commands.
Definition: NotificationListener.h:138
::std::string string
Definition: gtest-port.h:756
NotificationCommand
Definition: NotificationListener.h:62
NotificationListener interface.
Definition: NotificationListener.h:83
virtual bool executeCommand(NotificationCommand command, const std::string &sender)
Executes a command with the NotificationListener This needs to be overloaded by each class inheriting...
Definition: NotificationListener.h:130
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
This is the class from which all interfaces of the game-logic (not the engine) are derived from...
Definition: OrxonoxInterface.h:50
static void sendCommand(const std::string &command, const std::string &sender=NotificationListener::NONE, NotificationSendMode sendMode=NotificationSendMode::local, unsigned int clientId=0)
Sends a specified command to the specified client from the specified sender.
Definition: NotificationListener.h:106
virtual ~NotificationListener()
Definition: NotificationListener.h:87
static const std::string COMMAND_NONE
Definition: NotificationListener.h:139
static void sendNetworkHelper(const std::string &message, const std::string &sender, NotificationSendMode sendMode, unsigned int clientId, bool isCommand=false, NotificationMessageType messageType=NotificationMessageType::info)
Helper method to send both notifications and commands over the network.
Definition: NotificationListener.cc:76
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI() command(const std::string &fragment)
Returns a list of commands and groups and also supports auto-completion of the arguments of these com...
Definition: ArgumentCompletionFunctions.cc:178
Declaration of OrxonoxInterface, the base class of all interfaces in Orxonox.
NotificationSendMode
Definition: NotificationListener.h:56
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Declaration of several string manipulation functions, used in many parts of the game.
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
virtual bool registerNotification(const std::string &message, const std::string &sender, NotificationMessageType type)
Registers a notification with the NotificationListener.
Definition: NotificationListener.h:121
static const std::string ALL
Static string to indicate a sender that sends to all NotificationQueues.
Definition: NotificationListener.h:134
NotificationMessageType
Definition: NotificationListener.h:51
static const std::string NONE
Static string to indicate a sender that sends to no specific NotificationQueues.
Definition: NotificationListener.h:135
static void sendNotification(const std::string &message, const std::string &sender=NotificationListener::NONE, NotificationMessageType messageType=NotificationMessageType::info, NotificationSendMode sendMode=NotificationSendMode::local, unsigned int clientId=0)
Sends a Notification with the specified message to the specified client from the specified sender...
Definition: NotificationListener.h:97