Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/DialogManager.cc @ 11579

Last change on this file since 11579 was 11579, checked in by kuchlert, 6 years ago

some bug fixed most not

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 "DialogManager.h"
9#include <vector>
10#include <string>
11#include "core/XMLPort.h"
12#include "Dialog.h"
13
14
15
16namespace orxonox {
17
18        ManageScopedSingleton(DialogManager, ScopeID::ROOT, false);
19
20
21        DialogManager::DialogManager()
22        {
23                this->currentTalk_ = NULL;
24        }
25
26        void DialogManager::setDialog(Dialog* dialog)
27        {
28                this->currentTalk_ = dialog;   
29        }
30
31        const Dialog& getCurrentDialog()
32        {
33                return this->currentTalk_;
34        }
35       
36        bool DialogManager::empty()
37        {
38                if(this->currentTalk_ == NULL)
39                {
40                        return true;
41                }
42                else
43                {
44                        return false;
45                }
46        }
47} */
48
49#include "DialogManager.h"
50#include "core/CoreIncludes.h"
51#include "core/singleton/ScopedSingletonIncludes.h"
52
53namespace orxonox
54{
55    ManageScopedSingleton(DialogManager, ScopeID::ROOT, false);
56
57    RegisterAbstractClass(DialogManager).inheritsFrom<Listable>();
58
59    DialogManager::DialogManager()
60    {
61        RegisterObject(DialogManager);
62
63        this->value_ = 999;
64    }
65}
Note: See TracBrowser for help on using the repository browser.