Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2017, 3:04:50 PM (7 years ago)
Author:
rrogge
Message:

Singletonkram figured out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc

    r11413 r11415  
    66#include "network/Host.h"
    77#include "network/NetworkFunctionIncludes.h"
    8 #include "DialogueManager.h"
    98#include "DialoguePrereqs.h"
    109#include <vector>
    1110#include <string>
    1211#include "core/XMLPort.h"
     12#include "NextQuestion.h"
    1313
    1414
    1515namespace orxonox {
    16         //ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
    17         RegisterAbstractClass(DialogueManager).inheritsFrom<BaseObject>();
     16        ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
     17       
    1818
     19        //DialogueManager* DialogueManager::singletonPtr_s =nullptr;
    1920
    20 
    21         DialogueManager* DialogueManager::singletonPtr_s =nullptr;
    22 
    23         DialogueManager::DialogueManager(Context* context): BaseObject(context){
     21        DialogueManager::DialogueManager(){
    2422                orxout() << "Dialog Konstruktor" << endl;
    25                 RegisterObject(DialogueManager);
     23                //RegisterObject(DialogueManager);
    2624               
    2725               
     
    6664        bool DialogueManager::a1clicked(void){
    6765                orxout() << "a1 clicked" << endl;
     66
    6867                return true;
    6968        }
Note: See TracChangeset for help on using the changeset viewer.