Changeset 7403 for code/trunk/src/modules/questsystem/QuestDescription.h
- Timestamp:
- Sep 11, 2010, 10:20:44 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/notifications (added) merged: 7319,7324,7326,7338-7343,7348-7349,7351,7354-7355,7358-7360,7362,7395,7398-7400
- Property svn:mergeinfo changed
-
code/trunk/src/modules/questsystem/QuestDescription.h
r7401 r7403 97 97 /** 98 98 @brief Sends a Notification displaying that a QuestHint was added. 99 @param player The player the Notification is sent to. 99 100 @return Returns true if successful. 100 101 */ 101 inline bool sendAddHintNotification( void)102 { return notificationHelper("hint", "" ); }102 inline bool sendAddHintNotification(PlayerInfo* player) 103 { return notificationHelper("hint", "", player); } 103 104 104 105 /** 105 106 @brief Sends a Notification displaying that a Quest was added. 107 @param player The player the Notification is sent to. 106 108 @return Returns true if successful. 107 109 */ 108 inline bool sendAddQuestNotification( void)109 { return notificationHelper("quest", "start" ); }110 inline bool sendAddQuestNotification(PlayerInfo* player) 111 { return notificationHelper("quest", "start", player); } 110 112 111 113 /** 112 114 @brief Sends a Notification displaying that a Quest was failed. 115 @param player The player the Notification is sent to. 113 116 @return Returns true if successful. 114 117 */ 115 inline bool sendFailQuestNotification( void)116 { return notificationHelper("quest", "fail" ); }118 inline bool sendFailQuestNotification(PlayerInfo* player) 119 { return notificationHelper("quest", "fail", player); } 117 120 118 121 /** 119 122 @brief Sends a Notification displaying that a Quest was completed. 123 @param player The player the Notification is sent to. 120 124 @return Returns true if successful. 121 125 */ 122 inline bool sendCompleteQuestNotification( void)123 { return notificationHelper("quest", "complete" ); }126 inline bool sendCompleteQuestNotification(PlayerInfo* player) 127 { return notificationHelper("quest", "complete", player); } 124 128 125 129 private: … … 129 133 std::string completeMessage_; //!< The message displayed when the Quest is completed. 130 134 131 bool notificationHelper(const std::string & item, const std::string & status ); //!< Helper for sending QuestDescriptions as Notifications.135 bool notificationHelper(const std::string & item, const std::string & status, PlayerInfo* player); //!< Helper for sending QuestDescriptions as Notifications. 132 136 133 137 /**
Note: See TracChangeset
for help on using the changeset viewer.