- Timestamp:
- Nov 12, 2008, 1:29:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/Quest.cc
r2159 r2191 84 84 /** 85 85 @brief 86 Sets the parent quest of the quest.86 Sets the parentquest of the Quest. 87 87 @param quest 88 A pointer to the quest to be set as parentquest.89 @return 90 Returns true if the parent Quest could be set.88 A pointer to the Quest to be set as parentquest. 89 @return 90 Returns true if the parentquest could be set. 91 91 */ 92 92 bool Quest::setParentQuest(Quest* quest) … … 106 106 /** 107 107 @brief 108 Adds a sub quest to the quest.108 Adds a subquest to the Quest. 109 109 @param quest 110 A pointer to the quest to be set as subquest.111 @return 112 Returns true if the sub Quest vould be set.110 A pointer to the Quest to be set as subquest. 111 @return 112 Returns true if the subquest could be set. 113 113 */ 114 114 bool Quest::addSubQuest(Quest* quest) … … 120 120 } 121 121 122 quest->setParentQuest(this); //!< Sets the current quest (this) as parentquest for the added subquest.123 this->subQuests_.push_back(quest); //!< Adds the quest to the end of the list of subquests.122 quest->setParentQuest(this); //!< Sets the currentQuest (this) as parentquest for the added subquest. 123 this->subQuests_.push_back(quest); //!< Adds the Quest to the end of the list of subquests. 124 124 125 125 COUT(3) << "Sub Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl; … … 130 130 /** 131 131 @brief 132 Adds a Hint to the list of hints132 Adds a QuestHint to the list of QuestHints 133 133 @param hint 134 The hint that should be added to the list of hints.134 The QuestHint that should be added to the list of QuestHints. 135 135 @return 136 136 Returns true if the hint was successfully added. … … 144 144 } 145 145 146 hint->setQuest(this); //!< Sets the current quest (this) as quest for the added hint.147 this->hints_.push_back(hint); //!< Adds the hint to the end of the list of hints.146 hint->setQuest(this); //!< Sets the current Quest (this) as Quest for the added QuestHint. 147 this->hints_.push_back(hint); //!< Adds the QuestHint to the end of the list of QuestHints. 148 148 149 149 COUT(3) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl; … … 153 153 /** 154 154 @brief 155 Adds an effect to the list of failEffects.155 Adds an QuestEffect to the list of fail QuestEffects. 156 156 @param effect 157 157 The QuestEffect to be added. … … 167 167 } 168 168 169 this->failEffects_.push_back(effect); //!< Adds the effect to the end of the list of failEffects.169 this->failEffects_.push_back(effect); //!< Adds the QuestEffect to the end of the list of fail QuestEffects. 170 170 171 171 COUT(3) << "A FailEffect was added to Quest {" << this->getId() << "}." << std::endl; … … 175 175 /** 176 176 @brief 177 Adds an effect to the list of completeEffects.177 Adds an QuestEffect to the list of complete QuestEffects. 178 178 @param effect 179 179 The QuestEffect to be added. … … 189 189 } 190 190 191 this->completeEffects_.push_back(effect); //!< Adds the effect to the end of the list of completeEffects.191 this->completeEffects_.push_back(effect); //!< Adds the QuestEffect to the end of the list of complete QuestEffects. 192 192 193 193 COUT(3) << "A CompleteEffect was added to Quest {" << this->getId() << "}." << std::endl; … … 197 197 /** 198 198 @brief 199 Returns the parent quest of the quest.200 @return 201 Returns the parent quest of the quest.199 Returns the parentquest of the Quest. 200 @return 201 Returns a pointer to the parentquest of the Quest. 202 202 */ 203 203 const Quest* Quest::getParentQuest(void) … … 208 208 /** 209 209 @brief 210 Returns the sub quest ofthe given index.210 Returns the subquest at the given index. 211 211 @param 212 212 The index. 213 213 @return 214 Returns the subquest of the given index. NULL if there is no element onthe given index.214 Returns a pointer to the subquest at the given index. NULL if there is no element at the given index. 215 215 */ 216 216 const Quest* Quest::getSubQuest(unsigned int index) const … … 233 233 /** 234 234 @brief 235 Returns the hint ofthe given index.235 Returns the QuestHint at the given index. 236 236 @param 237 237 The index. 238 238 @return 239 Returns the hint of the given index. NULL if there is no element onthe given index.239 Returns a pointer to the QuestHint at the given index. NULL if there is no element at the given index. 240 240 */ 241 241 const QuestHint* Quest::getHint(unsigned int index) const … … 243 243 int i = index; 244 244 245 //! Iterate through all hints.245 //! Iterate through all QuestHints. 246 246 for (std::list<QuestHint*>::const_iterator hint = this->hints_.begin(); hint != this->hints_.end(); ++hint) 247 247 { … … 257 257 /** 258 258 @brief 259 Returns the fail Effect ofthe given index.259 Returns the fail QuestEffect at the given index. 260 260 @param 261 261 The index. 262 262 @return 263 Returns the failEffect of the given index. NULL if there is no element onthe given index.263 Returns a pointer to the fail QuestEffect at the given index. NULL if there is no element at the given index. 264 264 */ 265 265 const QuestEffect* Quest::getFailEffect(unsigned int index) const … … 267 267 int i = index; 268 268 269 //! Iterate through all fail Effects.269 //! Iterate through all fail QuestEffects. 270 270 for (std::list<QuestEffect*>::const_iterator effect = this->failEffects_.begin(); effect != this->failEffects_.end(); ++effect) 271 271 { … … 281 281 /** 282 282 @brief 283 Returns the complete Effect ofthe given index.283 Returns the complete QuestEffect at the given index. 284 284 @param 285 285 The index. 286 286 @return 287 Returns the completeEffect of the given index. NULL if there is no element onthe given index.287 Returns a pointer to the complete QuestEffect at the given index. NULL if there is no element at the given index. 288 288 */ 289 289 const QuestEffect* Quest::getCompleteEffect(unsigned int index) const … … 291 291 int i = index; 292 292 293 //! Iterate through all complete Effects.293 //! Iterate through all complete QuestEffects. 294 294 for (std::list<QuestEffect*>::const_iterator effect = this->completeEffects_.begin(); effect != this->completeEffects_.end(); ++effect) 295 295 { … … 366 366 /** 367 367 @brief 368 Starts the quest for an input player.369 @param player 370 The player. 371 @return 372 Returns true if the quest could be started, false if not.368 Starts the Quest for an input player. 369 @param player 370 The player. 371 @return 372 Returns true if the Quest could be started, false if not. 373 373 */ 374 374 bool Quest::start(ControllableEntity* player)
Note: See TracChangeset
for help on using the changeset viewer.