- Timestamp:
- Sep 5, 2010, 1:29:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/src/modules/questsystem/QuestDescription.h
r7163 r7355 95 95 /** 96 96 @brief Sends a Notification displaying that a QuestHint was added. 97 @param player The player the Notification is sent to. 97 98 @return Returns true if successful. 98 99 */ 99 inline bool sendAddHintNotification( void)100 { return notificationHelper("hint", "" ); }100 inline bool sendAddHintNotification(PlayerInfo* player) 101 { return notificationHelper("hint", "", player); } 101 102 102 103 /** 103 104 @brief Sends a Notification displaying that a Quest was added. 105 @param player The player the Notification is sent to. 104 106 @return Returns true if successful. 105 107 */ 106 inline bool sendAddQuestNotification( void)107 { return notificationHelper("quest", "start" ); }108 inline bool sendAddQuestNotification(PlayerInfo* player) 109 { return notificationHelper("quest", "start", player); } 108 110 109 111 /** 110 112 @brief Sends a Notification displaying that a Quest was failed. 113 @param player The player the Notification is sent to. 111 114 @return Returns true if successful. 112 115 */ 113 inline bool sendFailQuestNotification( void)114 { return notificationHelper("quest", "fail" ); }116 inline bool sendFailQuestNotification(PlayerInfo* player) 117 { return notificationHelper("quest", "fail", player); } 115 118 116 119 /** 117 120 @brief Sends a Notification displaying that a Quest was completed. 121 @param player The player the Notification is sent to. 118 122 @return Returns true if successful. 119 123 */ 120 inline bool sendCompleteQuestNotification( void)121 { return notificationHelper("quest", "complete" ); }124 inline bool sendCompleteQuestNotification(PlayerInfo* player) 125 { return notificationHelper("quest", "complete", player); } 122 126 123 127 private: … … 127 131 std::string completeMessage_; //!< The message displayed when the Quest is completed. 128 132 129 bool notificationHelper(const std::string & item, const std::string & status ); //!< Helper for sending QuestDescriptions as Notifications.133 bool notificationHelper(const std::string & item, const std::string & status, PlayerInfo* player); //!< Helper for sending QuestDescriptions as Notifications. 130 134 131 135 /**
Note: See TracChangeset
for help on using the changeset viewer.