Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 8:32:10 PM (16 years ago)
Author:
landauf
Message:
  • adopted quest classes to the new hierarchy (with a creator pointer)
  • added "RegisterObject(…)" in all constructors and "virtual" to all destructors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/QuestManager.h

    r2091 r2092  
    4848    class QuestManager : public BaseObject
    4949    {
    50    
     50
    5151        public:
    52             QuestManager();
    53             ~QuestManager();
    54            
     52            QuestManager(BaseObject* creator);
     53            virtual ~QuestManager();
     54
    5555            static bool registerQuest(Quest* quest); //!< Registers a quest in the QuestManager.
    5656            static bool registerHint(QuestHint* quest); //!< Registers a QuestHint in the QuestManager.
    57            
     57
    5858            static Quest* findQuest(const std::string & questId); //!< Returns the quest with the input id.
    5959            static QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id.
    60                    
     60
    6161        private:
    6262            static std::map<std::string, Quest*> questMap_; //!< All quests registered by their id's.
    6363            static std::map<std::string, QuestHint*> hintMap_; //!< All hints registered by their id's.
    64    
     64
    6565    };
    6666
Note: See TracChangeset for help on using the changeset viewer.