Changeset 7970 for code/branches/usability/src/modules/questsystem
- Timestamp:
- Feb 26, 2011, 7:38:59 PM (14 years ago)
- Location:
- code/branches/usability/src/modules/questsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/modules/questsystem/QuestItem.cc
r7456 r7970 87 87 void QuestItem::setId(const std::string & id) 88 88 { 89 if(id .compare(BLANKSTRING) == 0) // Checks whether the id is a valid id.89 if(id == "") // Checks whether the id is a valid id. 90 90 { 91 91 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; -
code/branches/usability/src/modules/questsystem/QuestManager.cc
r7552 r7970 91 91 /** 92 92 @brief 93 Registers a Quest with the QuestManager to make it globally access able.93 Registers a Quest with the QuestManager to make it globally accessible. 94 94 Uses it's id to make sure to be able to be identify and retrieve it later. 95 95 @param quest … … 129 129 /** 130 130 @brief 131 Registers a QuestHint with the QuestManager to make it globally access able.131 Registers a QuestHint with the QuestManager to make it globally accessible. 132 132 Uses it's id to make sure to be able to be identify and retrieve it later. 133 133 @param hint … … 178 178 Quest* QuestManager::findQuest(const std::string & questId) 179 179 { 180 if(questId .compare(BLANKSTRING) == 1) // Check vor validity of the given id.180 if(questId == "") // Check for validity of the given id. 181 181 ThrowException(Argument, "Invalid questId."); 182 182 … … 207 207 QuestHint* QuestManager::findHint(const std::string & hintId) 208 208 { 209 if(hintId .compare(BLANKSTRING) == 1) // Check vor validity of the given id.209 if(hintId == "") // Check for validity of the given id. 210 210 ThrowException(Argument, "Invalid hintId."); 211 211
Note: See TracChangeset
for help on using the changeset viewer.