Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

30 March

File size: 1.2 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        RegisterClass(DialogueManager);
16
17        DialogueManager::DialogueManager(){
18                RegisterObject(DialogueManager);
19
20        }
21       
22
23        /*std::string setnpc(std::string npc){
24                return npc;
25        }
26
27        void setquestion(std::string question){
28                question=question;
29        }
30
31        std::string getquestion(void){
32                return question;
33        }
34
35        void setanswers(std::string option1, std::string option2, std::string option3){
36                options.at(0)=option1;
37                options.at(1)=option2;
38                options.at(2)=option3;
39        }
40
41        vector<std::string> getanswers(void){
42                return options;
43        }
44
45        int getnumOptions(){
46                return options.size();
47        }
48
49        void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
50    {
51        SUPER(DialogueManager, XMLPort, xmlelement, mode);
52
53        XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
54    }*/
55}
Note: See TracBrowser for help on using the repository browser.