/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * Damian 'Mozork' Frick * Co-authors: * ... * */ /** @file QuestManager.h @brief Definition of the QuestManager class. */ #ifndef _QuestManager_H__ #define _QuestManager_H__ #include "OrxonoxPrereqs.h" #include #include #include "core/BaseObject.h" namespace orxonox { /** @brief Is a static class and manages quests, by registering every quest/hint (through registerX()) and making them globally accessable (through findX()). Quests (and Hints) are registered in the QuestManager with their id, and can be accessed in the same way. @author Damian 'Mozork' Frick */ class _OrxonoxExport QuestManager : public BaseObject { public: QuestManager(BaseObject* creator); virtual ~QuestManager(); static bool registerQuest(Quest* quest); //!< Registers a quest in the QuestManager. static bool registerHint(QuestHint* quest); //!< Registers a QuestHint in the QuestManager. static Quest* findQuest(const std::string & questId); //!< Returns the quest with the input id. static QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id. private: static std::map questMap_s; //!< All quests registered by their id's. static std::map hintMap_s; //!< All hints registered by their id's. }; } #endif /* _QuestManager_H__ */