Changeset 2093 for code/trunk/src/orxonox/objects/quest/Quest.cc
- Timestamp:
- Nov 1, 2008, 9:03:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/Quest.cc
r2092 r2093 135 135 } 136 136 137 138 139 140 141 137 this->hints_.push_back(hint); 138 hint->setQuest(this); 139 140 COUT(3) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl; 141 return true; 142 142 } 143 143 … … 195 195 int i = index; 196 196 for (std::list<Quest*>::const_iterator subQuest = this->subQuests_.begin(); subQuest != this->subQuests_.end(); ++subQuest) 197 198 199 200 201 202 203 197 { 198 if(i == 0) 199 { 200 return *subQuest; 201 } 202 i--; 203 } 204 204 return NULL; 205 205 } … … 213 213 int i = index; 214 214 for (std::list<QuestHint*>::const_iterator hint = this->hints_.begin(); hint != this->hints_.end(); ++hint) 215 216 217 218 219 220 221 215 { 216 if(i == 0) 217 { 218 return *hint; 219 } 220 i--; 221 } 222 222 return NULL; 223 223 } … … 231 231 int i = index; 232 232 for (std::list<QuestEffect*>::const_iterator effect = this->failEffects_.begin(); effect != this->failEffects_.end(); ++effect) 233 234 235 236 237 238 239 233 { 234 if(i == 0) 235 { 236 return *effect; 237 } 238 i--; 239 } 240 240 return NULL; 241 241 } … … 249 249 int i = index; 250 250 for (std::list<QuestEffect*>::const_iterator effect = this->completeEffects_.begin(); effect != this->completeEffects_.end(); ++effect) 251 252 253 254 255 256 257 251 { 252 if(i == 0) 253 { 254 return *effect; 255 } 256 i--; 257 } 258 258 return NULL; 259 259 }
Note: See TracChangeset
for help on using the changeset viewer.