Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/Answer.h @ 11658

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

fertig kommentierte version

File size: 1.3 KB
Line 
1#ifndef _Answer_H__
2#define _Answer_H__
3
4#include "core/BaseObject.h"
5#include "DialogPrereqs.h"
6#include "core/XMLPort.h"
7#include "core/CoreIncludes.h"
8#include <string>
9
10namespace orxonox
11{
12        /**
13        @brief
14    class containing the pc side of the Dialog
15
16    this class contains one possible text option of the pc, it's id and the id of the reaction of the npc to this answer
17        */
18
19        class _DialogExport Answer : public BaseObject
20        {
21                public:
22                        Answer(Context* context);
23                       
24                        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
25
26                        void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId
27                        const std::string& getAnswerId() const; //xmlPort-Funktion,     gibt AntwortId
28
29                        void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird
30                        const std::string& getNextQuestion() const;     //xmlPort-Funktion, gibt Id der Folgefrage
31
32                        void setAnswer(const std::string& awns);        //xmlPort-Funktion, setzt Antworttext
33                        const std::string& getAnswer() const;   //xmlPort-Funktion,     gibt Antworttext
34
35                private:
36                        std::string answerId_;  //!< id of the pc textoption   
37                        std::string answer_;    //!< string with the pc text
38                        std::string nextQuestionId_;    //!< id of the npc reaction to pc answer
39        };
40}
41
42#endif
Note: See TracBrowser for help on using the repository browser.