Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2017, 3:35:25 PM (6 years ago)
Author:
kuchlert
Message:

funktioniert bis dialogmanager getInstance, angefangen und noch zu tun: luafunktionen von dialogmanager, lua und layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialog_HS17/src/modules/dialog/DialogManager.h

    r11611 r11612  
    44#include "DialogPrereqs.h"
    55#include "util/Singleton.h"
     6#include "core/singleton/ScopedSingletonIncludes.h"
    67#include "core/object/Listable.h"
    78#include "Dialog.h"
    89
    9 namespace orxonox
    10 {
    11     class _DialogExport DialogManager : public Singleton<DialogManager>, public Listable
    12     {
     10#include <string>
     11
     12namespace orxonox //tolua_export
     13
     14{//tolua_export
     15    class _OrxonoxExport DialogManager //tolua_export
     16    : public Singleton<DialogManager>
     17    {//tolua_export
    1318        friend class Singleton<DialogManager>;
     19   
     20        public:
     21       
     22        DialogManager();
     23       
    1424
    15         public:
    16             DialogManager();
     25        static DialogManager& getInstance() { return Singleton<DialogManager>::getInstance(); } //tolua_export
    1726
    18            // int getValue() const { return this->value_; }
     27        void setDialog(Dialog* dialog);
    1928
    20                 static DialogManager& getInstance() { return Singleton<DialogManager>::getInstance(); } //toloa_export
     29        //from here on luafunctionality is declared
    2130
    22                 void setDialog(Dialog* dialog);
    23                 const Dialog* getCurrentDialog();
    24                 bool empty();
     31        std::string getQuestion(); //tolua_export
     32        //std::vector<std::string> getAnswers();
    2533
    26             //form here on all lua functionality used in lua scrips is declared
     34private:
     35    static DialogManager* singletonPtr_s;
    2736
     37    Dialog* currentTalk_;
    2838
    29         private:
    30                 Dialog* currentTalk_;
    31             //int value_;
    32 
    33             static DialogManager* singletonPtr_s;
    34     };
    35 }
     39    };//tolua_export
     40}//tolua_export
    3641
    3742#endif /* _DialogManager_H__ */
Note: See TracChangeset for help on using the changeset viewer.