Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2960 for code/trunk/src


Ignore:
Timestamp:
May 10, 2009, 11:56:07 AM (16 years ago)
Author:
dafrick
Message:

Trying to export to lua, doesn't work, yet…

File:
1 edited

Legend:

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

    r2911 r2960  
    4141
    4242#include "core/OrxonoxClass.h"
     43#include "orxonox/objects/infos/PlayerInfo.h"
    4344
     45// tolua_begin
    4446namespace orxonox
    4547{
     48// tolua_end
     49
     50    struct RootQuest
     51    {
     52        Quest* quest;
     53        RootQuest* next;
     54    };
     55
     56// tolua_begin
    4657    /**
    4758    @brief
     
    5162        Damian 'Mozork' Frick
    5263    */
    53     class _OrxonoxExport QuestManager : public OrxonoxClass
     64    class _OrxonoxExport QuestManager
     65// tolua_end
     66        : public OrxonoxClass
     67// tolua_begin
    5468    {
     69// tolua_end
    5570        public:
    5671            QuestManager();
    5772            virtual ~QuestManager();
    5873
    59             static QuestManager& getInstance(); //!< Returns a reference to the single instance of the Quest Manager.
     74            static QuestManager& getInstance(); // tolua_export //!< Returns a reference to the single instance of the Quest Manager.
    6075
    6176            bool registerQuest(Quest* quest); //!< Registers a Quest in the QuestManager.
     
    6580            QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id.
    6681
     82            RootQuest* getQuests(const PlayerInfo & player);
     83
     84            static void toggleQuestGUI(void); //!< Opens the GUI.
     85
    6786        private:
    6887            static QuestManager* singletonRef_s;
     88            static bool GUIOpen;
    6989
    7090            std::map<std::string, Quest*> questMap_; //!< All Quests registered by their id's.
    7191            std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's.
    7292
    73     };
     93    }; // tolua_export
    7494
    75 }
     95} // tolua_export
    7696
    7797#endif /* _QuestManager_H__ */
Note: See TracChangeset for help on using the changeset viewer.