Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Default Fenster funktioniert noch nicht

File size: 1.5 KB
Line 
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"
9#include "DialoguePrereqs.h"
10#include <vector>
11#include <string>
12
13namespace orxonox {
14        ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
15        RegisterClassNoArgs(DialogueManager);
16
17        DialogueManager::DialogueManager(){
18                RegisterObject(DialogueManager);
19                this->setConfigValues();
20
21        }
22       
23        /**
24     * @brief set the config values in the orxonox.ini file
25     */
26    void DialogueManager::setConfigValues()
27    {
28        //SetConfigValue(question,std::string).description("Question");
29       
30    }
31
32    void DialogueManager::setquestion(std::string question){
33                question=question;
34        }
35
36        std::string DialogueManager::getquestion(void){
37                return question;
38        }
39        void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
40    {
41        SUPER(DialogueManager, XMLPort, xmlelement, mode);
42
43        XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
44    }
45        /*std::string DialogueManager::setnpc(std::string npc){
46                return npc;
47        }
48
49       
50
51        void DialogueManager::setanswers(std::string option1, std::string option2, std::string option3){
52                options.at(0)=option1;
53                options.at(1)=option2;
54                options.at(2)=option3;
55        }
56
57        vector<std::string> DialogueManager::getanswers(void){
58                return options;
59        }
60
61        int DialogueManager::getnumOptions(){
62                return options.size();
63        }
64
65        */
66}
Note: See TracBrowser for help on using the repository browser.