Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11390


Ignore:
Timestamp:
Mar 30, 2017, 4:04:09 PM (7 years ago)
Author:
rrogge
Message:

Default Fenster funktioniert noch nicht

Location:
code/branches/Dialogue_FS17/src/modules/dialogue
Files:
2 edited

Legend:

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

    r11384 r11390  
    2929       
    3030    }
    31         /*std::string DialogueManager::setnpc(std::string npc){
    32                 return npc;
    33         }
    3431
    35         void DialogueManager::setquestion(std::string question){
     32    void DialogueManager::setquestion(std::string question){
    3633                question=question;
    3734        }
     
    4037                return question;
    4138        }
     39        void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     40    {
     41        SUPER(DialogueManager, XMLPort, xmlelement, mode);
     42
     43        XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
     44    }
     45        /*std::string DialogueManager::setnpc(std::string npc){
     46                return npc;
     47        }
     48
     49       
    4250
    4351        void DialogueManager::setanswers(std::string option1, std::string option2, std::string option3){
     
    5563        }
    5664
    57         void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    58     {
    59         SUPER(DialogueManager, XMLPort, xmlelement, mode);
    60 
    61         XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
    62     }*/
     65        */
    6366}
  • code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h

    r11384 r11390  
    1212#include "OrxonoxPrereqs.h"
    1313#include "core/config/Configurable.h"
     14#include "core/XMLPort.h"
    1415
    1516//tolua_begin
     
    2627                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); }
    2728                void setConfigValues();
    28                 /*virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     29                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    2930
    3031                        void setquestion(std::string question);
    3132                        std::string getquestion(void);
    3233
    33                         std::string setnpc(std::string npc);
     34                        /*std::string setnpc(std::string npc);
    3435
    3536                        void setanswers(std::string option1, std::string option2, std::string option3);
Note: See TracChangeset for help on using the changeset viewer.