Changeset 7830 for code/branches/tutoriallevel/src/modules
- Timestamp:
- Jan 16, 2011, 2:15:39 PM (14 years ago)
- Location:
- code/branches/tutoriallevel/src/modules/questsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutoriallevel/src/modules/questsystem/QuestManager.cc
r7552 r7830 274 274 int QuestManager::getNumSubQuests(Quest* quest, PlayerInfo* player) 275 275 { 276 if(quest == NULL) 277 return this->getNumRootQuests(player); 278 276 279 std::list<Quest*> quests = quest->getSubQuestList(); 277 280 int numQuests = 0; … … 296 299 Quest* QuestManager::getSubQuest(Quest* quest, PlayerInfo* player, int index) 297 300 { 301 if(quest == NULL) 302 return this->getRootQuest(player, index); 303 298 304 std::list<Quest*> quests = quest->getSubQuestList(); 299 305 for(std::list<Quest*>::iterator it = quests.begin(); it != quests.end(); it++) … … 349 355 /** 350 356 @brief 357 Get the parent-quest of the input Quest for the input player. 358 @param quest 359 The Quest to get the parent-quest of. 360 @param player 361 The player. 362 */ 363 Quest* QuestManager::getParentQuest(Quest* quest) 364 { 365 return quest->getParentQuest(); 366 } 367 368 /** 369 @brief 351 370 Get the QuestDescription of the input Quest. 352 371 @param item … … 375 394 /** 376 395 @brief 396 Get the id of the input Quest. 397 @param item 398 The Quest to get the id of. 399 @return 400 Returns the id of the input Quest. 401 */ 402 const std::string QuestManager::getId(Quest* item) const 403 { 404 return item->getId(); 405 } 406 407 /** 408 @brief 409 Get the id of the input QuestHint. 410 @param item 411 The QuestHint to get the id of. 412 @return 413 Returns the id of the input QuestHint. 414 */ 415 const std::string QuestManager::getId(QuestHint* item) const 416 { 417 return item->getId(); 418 } 419 420 /** 421 @brief 377 422 Retrieve the player for a certain GUI. 378 423 @param guiName -
code/branches/tutoriallevel/src/modules/questsystem/QuestManager.h
r7552 r7830 81 81 QuestHint* getHints(Quest* quest, orxonox::PlayerInfo* player, int index); //!< Get the index-th QuestHint of the input Quest for the input player. 82 82 83 QuestDescription* getDescription(Quest* item); 84 QuestDescription* getDescription(QuestHint* item); 83 Quest* getParentQuest(Quest* quest); //!< Get the parent-quest of the input Quest. 84 85 QuestDescription* getDescription(Quest* item); //!< Get the QuestDescription of the input Quest. 86 QuestDescription* getDescription(QuestHint* item); //!< Get the QuestDescription of the input QuestHint. 87 88 const std::string getId(Quest* item) const; //!< Get the id of the input Quest. 89 const std::string getId(QuestHint* item) const; //!< Get the id of the input QuestHint. 85 90 // tolua_end 86 91
Note: See TracChangeset
for help on using the changeset viewer.