Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc @ 11401

Last change on this file since 11401 was 11401, checked in by rrogge, 7 years ago

zeigt PickupInventory an

File size: 1.6 KB
RevLine 
[11371]1#include "core/CoreIncludes.h"
2#include "core/LuaState.h"
3#include "core/GUIManager.h"
4#include "core/class/Identifier.h"
5#include "core/singleton/ScopedSingletonIncludes.h"
6#include "network/Host.h"
7#include "network/NetworkFunctionIncludes.h"
8#include "DialogueManager.h"
[11382]9#include "DialoguePrereqs.h"
10#include <vector>
11#include <string>
[11393]12#include "core/XMLPort.h"
[11371]13
[11393]14
[11371]15namespace orxonox {
[11393]16        //ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
[11394]17        RegisterAbstractClass(DialogueManager).inheritsFrom<BaseObject>();
[11371]18
[11393]19
20
21        DialogueManager* DialogueManager::singletonPtr_s =nullptr;
22
23        DialogueManager::DialogueManager(Context* context): BaseObject(context){
[11371]24                RegisterObject(DialogueManager);
[11393]25               
[11394]26               
[11377]27
[11371]28        }
[11382]29       
[11393]30
[11384]31        /**
32     * @brief set the config values in the orxonox.ini file
33     */
[11393]34   
[11371]35
[11390]36    void DialogueManager::setquestion(std::string question){
[11382]37                question=question;
[11377]38        }
39
[11384]40        std::string DialogueManager::getquestion(void){
[11382]41                return question;
[11377]42        }
[11401]43        /*void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
[11390]44    {
45        SUPER(DialogueManager, XMLPort, xmlelement, mode);
[11377]46
[11390]47        XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
[11401]48    }*/
[11393]49
[11401]50       
[11393]51
[11390]52        /*std::string DialogueManager::setnpc(std::string npc){
53                return npc;
54        }
55
56       
57
[11384]58        void DialogueManager::setanswers(std::string option1, std::string option2, std::string option3){
[11382]59                options.at(0)=option1;
60                options.at(1)=option2;
61                options.at(2)=option3;
[11371]62        }
[11377]63
[11384]64        vector<std::string> DialogueManager::getanswers(void){
[11382]65                return options;
[11377]66        }
67
[11384]68        int DialogueManager::getnumOptions(){
[11382]69                return options.size();
[11377]70        }
71
[11390]72        */
[11371]73}
Note: See TracBrowser for help on using the repository browser.