Changeset 7456 for code/trunk/src/modules/questsystem/QuestManager.h
- Timestamp:
- Sep 15, 2010, 7:29:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestManager.h
r7163 r7456 28 28 29 29 /** 30 @file 30 @file QuestManager.h 31 31 @brief Definition of the QuestManager class. 32 @ingroup Questsystem 32 33 */ 33 34 … … 44 45 #include "core/OrxonoxClass.h" 45 46 46 // tolua_begin 47 namespace orxonox 48 { 47 namespace orxonox // tolua_export 48 { // tolua_export 49 49 /** 50 50 @brief 51 Is a Singleton and manages Quests, by registering every Quest/QuestHint(through registerX()) and making them globally accessible (through findX()).52 Quests (and QuestHints) are registered in the QuestManager with their id, and can be accessed in the same way.51 Is a Singleton and manages @ref orxonox::Quest "Quests", by registering every @ref orxonox::Quest "Quest" / @ref orxonox::QuestHint "QuestHint" (through registerX()) and making them globally accessible (through findX()). 52 @ref orxonox::Quest "Quests" (and @ref orxonox::QuestHint 2) are registered in the QuestManager with their id, and can be accessed in the same way. 53 53 @author 54 54 Damian 'Mozork' Frick 55 55 */ 56 class _QuestsystemExport QuestManager 57 // tolua_end 56 class _QuestsystemExport QuestManager // tolua_export 58 57 : public Singleton<QuestManager>, public orxonox::OrxonoxClass 59 58 { // tolua_export … … 65 64 virtual ~QuestManager(); 66 65 67 //! Returns a reference to the single instance of the Quest 66 //! Returns a reference to the single instance of the QuestManager. 68 67 static QuestManager& getInstance() { return Singleton<QuestManager>::getInstance(); } // tolua_export 69 68 70 69 // tolua_begin 71 int getNum ParentQuests(orxonox::PlayerInfo* player);72 Quest* get ParentQuest(orxonox::PlayerInfo* player, int index);70 int getNumRootQuests(orxonox::PlayerInfo* player); //!< Get the number of Quests the input player has, that are root quests. 71 Quest* getRootQuest(orxonox::PlayerInfo* player, int index); //!< Get the index-th root quest of the input player. 73 72 74 int getNumSubQuests(Quest* quest, orxonox::PlayerInfo* player); 75 Quest* getSubQuest(Quest* quest, orxonox::PlayerInfo* player, int index); 73 int getNumSubQuests(Quest* quest, orxonox::PlayerInfo* player); //!< Get the number of sub-quest of an input Quest for an input player. 74 Quest* getSubQuest(Quest* quest, orxonox::PlayerInfo* player, int index); //!< Get the index-th sub-quest of the input Quest for the input player. 76 75 77 int getNumHints(Quest* quest, orxonox::PlayerInfo* player); 78 QuestHint* getHints(Quest* quest, orxonox::PlayerInfo* player, int index); 76 int getNumHints(Quest* quest, orxonox::PlayerInfo* player); //!< Get the number of QuestHints of the input Quest for the input player. 77 QuestHint* getHints(Quest* quest, orxonox::PlayerInfo* player, int index); //!< Get the index-th QuestHint of the input Quest for the input player. 79 78 80 79 QuestDescription* getDescription(Quest* item);
Note: See TracChangeset
for help on using the changeset viewer.