Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2018, 12:09:09 AM (6 years ago)
Author:
landauf
Message:

tabs → spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/dialog/Answer.h

    r11781 r11782  
    3838namespace orxonox
    3939{
    40         /**
    41         @brief
     40    /**
     41    @brief
    4242    class containing the pc side of the Dialog
    4343
    4444    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
    45         */
     45    */
    4646
    47         class _DialogExport Answer : public BaseObject
    48         {
    49                 public:
    50                         Answer(Context* context);
    51                        
    52                         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     47    class _DialogExport Answer : public BaseObject
     48    {
     49        public:
     50            Answer(Context* context);
    5351
    54                         void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId
    55                         const std::string& getAnswerId() const; //xmlPort-Funktion,     gibt AntwortId
     52            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5653
    57                         void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird
    58                         const std::string& getNextQuestion() const;     //xmlPort-Funktion, gibt Id der Folgefrage
     54            void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId
     55            const std::string& getAnswerId() const; //xmlPort-Funktion, gibt AntwortId
    5956
    60                         void setAnswer(const std::string& awns);        //xmlPort-Funktion, setzt Antworttext
    61                         const std::string& getAnswer() const;   //xmlPort-Funktion,     gibt Antworttext
     57            void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird
     58            const std::string& getNextQuestion() const; //xmlPort-Funktion, gibt Id der Folgefrage
    6259
    63                 private:
    64                         std::string answerId_;  //!< id of the pc textoption   
    65                         std::string answer_;    //!< string with the pc text
    66                         std::string nextQuestionId_;    //!< id of the npc reaction to pc answer
    67         };
     60            void setAnswer(const std::string& awns); //xmlPort-Funktion, setzt Antworttext
     61            const std::string& getAnswer() const; //xmlPort-Funktion, gibt Antworttext
     62
     63        private:
     64            std::string answerId_;  //!< id of the pc textoption
     65            std::string answer_;    //!< string with the pc text
     66            std::string nextQuestionId_; //!< id of the npc reaction to pc answer
     67    };
    6868}
    6969
Note: See TracChangeset for help on using the changeset viewer.