Changeset 11415 for code/branches/Dialogue_FS17/src/modules
- Timestamp:
- May 11, 2017, 3:04:50 PM (8 years ago)
- Location:
- code/branches/Dialogue_FS17/src/modules/dialogue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc
r11413 r11415 6 6 #include "network/Host.h" 7 7 #include "network/NetworkFunctionIncludes.h" 8 #include "DialogueManager.h"9 8 #include "DialoguePrereqs.h" 10 9 #include <vector> 11 10 #include <string> 12 11 #include "core/XMLPort.h" 12 #include "NextQuestion.h" 13 13 14 14 15 15 namespace orxonox { 16 //ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);17 RegisterAbstractClass(DialogueManager).inheritsFrom<BaseObject>();16 ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false); 17 18 18 19 //DialogueManager* DialogueManager::singletonPtr_s =nullptr; 19 20 20 21 DialogueManager* DialogueManager::singletonPtr_s =nullptr; 22 23 DialogueManager::DialogueManager(Context* context): BaseObject(context){ 21 DialogueManager::DialogueManager(){ 24 22 orxout() << "Dialog Konstruktor" << endl; 25 RegisterObject(DialogueManager);23 //RegisterObject(DialogueManager); 26 24 27 25 … … 66 64 bool DialogueManager::a1clicked(void){ 67 65 orxout() << "a1 clicked" << endl; 66 68 67 return true; 69 68 } -
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h
r11413 r11415 16 16 17 17 18 19 18 20 namespace orxonox //tolua_export 19 21 20 22 {//tolua_export 21 23 class _OrxonoxExport DialogueManager //tolua_export 22 : public Singleton<DialogueManager> , public BaseObject24 : public Singleton<DialogueManager> 23 25 {//tolua_export 24 26 friend class Singleton<DialogueManager>; … … 27 29 28 30 29 DialogueManager( Context* context);31 DialogueManager(); 30 32 31 33 … … 56 58 */ 57 59 private: 60 //NextQuestion currentQuestion; 58 61 std::string a1; 59 62 std::string a2; -
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.cc
r11413 r11415 17 17 RegisterObject(NextQuestion); 18 18 orxout() << "Klasse aufgerufen" << endl; 19 DialogueManager* d = new DialogueManager(context);19 20 20 21 21 } … … 109 109 } 110 110 111 NextQuestion NextQuestion::compare(){ 111 112 /*NextQuestion NextQuestion::compare(){ 112 113 DialogueManager& m = DialogueManager::getInstance(); 113 114 if(m.a1clicked()){ … … 118 119 return *possibleQuestions[1]; 119 120 } 120 } 121 }*/ 121 122 122 123
Note: See TracChangeset
for help on using the changeset viewer.