Changeset 7163 for code/trunk/src/modules/questsystem/QuestItem.cc
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/questsystem/QuestItem.cc
r6417 r7163 40 40 namespace orxonox 41 41 { 42 43 CreateUnloadableFactory(QuestItem); 44 42 45 /** 43 46 @brief … … 46 49 QuestItem::QuestItem(BaseObject* creator) : BaseObject(creator) 47 50 { 51 this->registered_ = false; 52 48 53 RegisterObject(QuestItem); 49 54 } … … 79 84 void QuestItem::setId(const std::string & id) 80 85 { 81 if( !isId(id)) //!< Checks whether the id is a valid id.86 if(id.compare(BLANKSTRING) == 0) //!< Checks whether the id is a valid id. 82 87 { 83 88 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; … … 88 93 } 89 94 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 95 }
Note: See TracChangeset
for help on using the changeset viewer.