- Timestamp:
- May 10, 2011, 11:37:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutoriallevel2/src/modules/notifications/Notification.h
r8374 r8445 40 40 #include <string> 41 41 #include "core/OrxonoxClass.h" 42 #include "interfaces/NotificationListener.h" 42 43 43 44 namespace orxonox … … 48 49 A Notification represents a short message used to inform the player about something that just happened. With the @ref orxonox::NotificationManager "NotificationManager" a Notification can be sent from any part of orxonox and is then displayed by the proper @ref orxonox::NotificationQueue "NotificationQueue(s)" (depending on which senders the specific @ref orxonox::NotificationQueue "NotificationQueues" accepts). 49 50 50 A Notification is just a data structure that is used internally by the Notifications module.51 A Notification is just a data structure that is used internally by the Notifications module. 51 52 52 53 @author … … 58 59 { 59 60 public: 60 Notification(const std::string& message, const std::string& sender );61 Notification(const std::string& message, const std::string& sender, notificationMessageType::Value type); 61 62 virtual ~Notification(); 62 63 … … 75 76 { return this->sender_; } 76 77 78 /** 79 @brief Get the type of the Notification. 80 @return Returns an enum with the type of the Notification. 81 */ 82 inline notificationMessageType::Value getType(void) const 83 { return this->type_; } 84 77 85 private: 78 86 std::string message_; //!< The Notification message. 79 87 std::string sender_; //!< The sender of the notification. 88 notificationMessageType::Value type_; //!< The type of the notification. 80 89 81 90 void initialize(void); //!< Registers the object and sets some default values.
Note: See TracChangeset
for help on using the changeset viewer.