Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

tabs → spaces

File:
1 edited

Legend:

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

    r11781 r11782  
    4242{
    4343
    44         /**
    45         @brief
     44    /**
     45    @brief
    4646    class containing the npc side of the Dialog
    4747
    4848    this class contains one possible text option of the npc, it's id and the ids of possible player reactions (answers)
    49         */
     49    */
    5050
    51         class _DialogExport Question : public BaseObject
    52         {
    53                 public:
    54                         Question(Context* context);
     51    class _DialogExport Question : public BaseObject
     52    {
     53        public:
     54            Question(Context* context);
    5555
    56                         virtual void XMLPort(Element& xmelement, XMLPort::Mode mode);
     56            virtual void XMLPort(Element& xmelement, XMLPort::Mode mode);
    5757
    58                         void setQuestionId(const std::string& Id);      //xmlPort-Funktion, setzt Id
    59                         const std::string& getQuestionId() const;       //xmlPort-Funktion, gibt Id string zuruek
     58            void setQuestionId(const std::string& Id); //xmlPort-Funktion, setzt Id
     59            const std::string& getQuestionId() const; //xmlPort-Funktion, gibt Id string zuruek
    6060
    61                         void setQuestion(const std::string& question);  //xmlPort-Funktion, setzt Fragen string
    62                         const std::string& getQuestion() const; //xmlPort-Funktion, gibt Fragen string
     61            void setQuestion(const std::string& question); //xmlPort-Funktion, setzt Fragen string
     62            const std::string& getQuestion() const; //xmlPort-Funktion, gibt Fragen string
    6363
    64                         void addAnswerId(AnswerId* answerId);   //xmlPort-Funktion, nimmt AnswerIds von entsprechenden Objekten und fuegt sie in List ein.
    65                         AnswerId* getAnswerId(unsigned int index) const;        //xmlPort-Funktion, gibt nichts zuruek
     64            void addAnswerId(AnswerId* answerId);  //xmlPort-Funktion, nimmt AnswerIds von entsprechenden Objekten und fuegt sie in List ein.
     65            AnswerId* getAnswerId(unsigned int index) const; //xmlPort-Funktion, gibt nichts zuruek
    6666
    67                         /**
    68                 @brief
    69                     gives pointer to possivle answerIds of this question
     67            /**
     68            @brief
     69                gives pointer to possivle answerIds of this question
    7070
    71                 @return
    72                         returns pointer to the array with ids of possible pc textoptions
    73                 */
    74                         const std::vector<std::string>& getAnswerIds() const; //returnt Pointer auf Vektor mit allen Ids
     71            @return
     72                returns pointer to the array with ids of possible pc textoptions
     73            */
     74            const std::vector<std::string>& getAnswerIds() const; //returnt Pointer auf Vektor mit allen Ids
    7575
    7676
    7777
    78                 private:       
    79                         std::string questionId_;        //!< id of npc textoption       
    80                         std::string question_;  //!< string with npc text
    81                         std::vector<std::string> answerIds_;    //!< vector with possible player reactions
    82         };
     78        private:
     79            std::string questionId_; //!< id of npc textoption
     80            std::string question_; //!< string with npc text
     81            std::vector<std::string> answerIds_; //!< vector with possible player reactions
     82    };
    8383}
    8484
Note: See TracChangeset for help on using the changeset viewer.