- Timestamp:
- Nov 25, 2008, 11:56:40 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/questsystem2 (added) merged: 2109,2146,2159,2191,2193-2196,2205-2206,2208-2209,2221,2226,2228,2251,2258
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed
/code/branches/questsystem2/src/orxonox/objects/quest/ChangeQuestStatus.cc (added) merged: 2159,2191,2226,2251 /code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc merged: 1925-2089
r2105 r2261 27 27 */ 28 28 29 /** 30 @file ChangeQuestStatus.cc 31 @brief 32 Implementation of the ChangeQuestStatus class. 33 */ 34 29 35 #include "OrxonoxStableHeaders.h" 30 36 #include "ChangeQuestStatus.h" … … 36 42 namespace orxonox { 37 43 44 /** 45 @brief 46 Constructor. Registers the object. 47 */ 38 48 ChangeQuestStatus::ChangeQuestStatus(BaseObject* creator) : QuestEffect(creator) 39 49 { … … 49 59 } 50 60 51 void ChangeQuestStatus::setQuestId(const std::string & id) 52 { 53 if(!QuestItem::isId(id)) 54 { 55 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; 56 return; 57 } 58 this->questId_ = id; 59 } 60 61 /** 62 @brief 63 Method for creating a ChangeQuestStatus object through XML. 64 */ 61 65 void ChangeQuestStatus::XMLPort(Element& xmlelement, XMLPort::Mode mode) 62 66 { … … 66 70 } 67 71 72 /** 73 @brief 74 Sets the id of the Quest the Questffect changes the status of. 75 @param id 76 The id of the Quest. 77 @return 78 Returns true if successful. 79 */ 80 bool ChangeQuestStatus::setQuestId(const std::string & id) 81 { 82 if(!QuestItem::isId(id)) 83 { 84 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; 85 return false; 86 } 87 88 this->questId_ = id; 89 return true; 90 } 91 68 92 } - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.