Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2009, 11:41:48 PM (15 years ago)
Author:
dafrick
Message:

Some Quest stuff, and the rest for the GUIOverlay I failed to commit before.

File:
1 edited

Legend:

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

    r2960 r2963  
    3838
    3939#include <map>
     40#include <list>
    4041#include <string>
    4142
    4243#include "core/OrxonoxClass.h"
    4344#include "orxonox/objects/infos/PlayerInfo.h"
     45#include "overlays/GUIOverlay.h"
    4446
    4547// tolua_begin
    4648namespace orxonox
    4749{
    48 // tolua_end
    4950
    50     struct RootQuest
     51    struct QuestContainer;
     52    struct HintContainer;
     53
     54    struct QuestContainer
    5155    {
    52         Quest* quest;
    53         RootQuest* next;
     56        const QuestDescription* description;
     57        HintContainer* hint;
     58        QuestContainer* subQuests;
     59        QuestContainer* next;
    5460    };
    5561
    56 // tolua_begin
     62    struct HintContainer
     63    {
     64        const QuestDescription* description;
     65        HintContainer* next;
     66    };
     67
    5768    /**
    5869    @brief
     
    8091            QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id.
    8192
    82             RootQuest* getQuests(const PlayerInfo & player);
     93            QuestContainer* getQuestTree(std::string & name); // tolua_export
    8394
    8495            static void toggleQuestGUI(void); //!< Opens the GUI.
     
    91102            std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's.
    92103
     104            void getRootQuests(const PlayerInfo* player, std::list<Quest*> & list);
     105            void addHints(QuestContainer* container, Quest* quest, const PlayerInfo* player);
     106            void addSubQuests(QuestContainer* container, Quest* quest, const PlayerInfo* player);
     107
    93108    }; // tolua_export
    94109
Note: See TracChangeset for help on using the changeset viewer.