- Timestamp:
- May 20, 2010, 7:38:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/questsystem/QuestItem.cc
r6417 r6940 46 46 QuestItem::QuestItem(BaseObject* creator) : BaseObject(creator) 47 47 { 48 this->registered_ = false; 49 48 50 RegisterObject(QuestItem); 49 51 } … … 79 81 void QuestItem::setId(const std::string & id) 80 82 { 81 if( !isId(id)) //!< Checks whether the id is a valid id.83 if(id.compare(BLANKSTRING) == 0) //!< Checks whether the id is a valid id. 82 84 { 83 85 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; … … 88 90 } 89 91 90 /**91 @brief92 Checks whether an input id is of the required form.93 @param id94 The id to be checked.95 @return96 Returns true if the string is likely to be of the required form.97 */98 /*static*/ bool QuestItem::isId(const std::string & id)99 {100 return id.size() >= 32;101 }102 103 92 }
Note: See TracChangeset
for help on using the changeset viewer.