Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 4:57:47 PM (7 years ago)
Author:
maxima
Message:

No more compiler errors. XMLPortObjects not yet implemented.

File:
1 edited

Legend:

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

    r11579 r11607  
     1#ifndef _Dialog_H__
     2#define _Dialog_H__
     3
    14#include "core/BaseObject.h"
    25#include "Question.h"
    36#include "Answer.h"
    47#include "core/XMLPort.h"
     8#include "core/CoreIncludes.h"
    59#include "overlays/OrxonoxOverlay.h"
    610
     
    1317                public:
    1418                        Dialog(Context* context);
    15                         virtual ~Dialog();
     19                        // virtual ~Dialog();
    1620                        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    1721                        virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
     
    2327                        std::string getCurrentQuestionId();
    2428
    25                         void addQuestion(Question question); //fuegt Question der Map hinzu
    26                         void addAnswer(Answer answer); //fuegt Answer der Map hinzu
     29                        void addQuestion(Question* question); //fuegt Question der Map hinzu
     30                        void addAnswer(Answer* answer); //fuegt Answer der Map hinzu
    2731
    28                         std::string getQuestion(); //tolua_export       // returned string der momentanen Frage
    29                         std::string getAnswer(std::string answerId); //tolua_export             //returned sting der Antwort zur Id.
     32                        Question* getQuestion(unsigned int index) const; //tolua_export // returned string der momentanen Frage
     33                        Answer* getAnswer(unsigned int index) const; //tolua_export     // returned string der momentanen Frage
    3034                        std::vector<std::string> getAnswers(); //tolua_export   // returned vector mit allen momentanen AntwortenIds
    3135
    32                         bool execute(bool bTriggered, BaseObject* trigger);
     36                        bool execute(bool bTriggered, BaseObject* trigger);
    3337
    3438                        void update(std::string givenAnswer);   //tolua_export
     
    4448        };
    4549}
     50
     51#endif
Note: See TracChangeset for help on using the changeset viewer.