61 virtual void XMLEventPort(Element& xmlelement,
XMLPort::Mode mode);
66 void setCurrentQuestionId(
const std::string& questionId);
69 void addQuestion(
Question* question);
70 Question* getQuestion(
unsigned int index)
const;
72 void addAnswer(
Answer* answer);
73 Answer* getAnswer(
unsigned int index)
const;
82 const std::vector<std::string>& getAnswerIds()
const;
95 bool execute(
bool bTriggered,
BaseObject* trigger);
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
std::string currentQuestionId_
id of the npc question currently active
Definition: Dialog.h:139
#define _DialogExport
Definition: DialogPrereqs.h:60
class containing core of one dialog with one npc
Definition: Dialog.h:55
class containing the pc side of the Dialog
Definition: Answer.h:47
std::map< std::string, Answer * > answers_
a map form the ids of npc textoptions to the objects containing them
Definition: Dialog.h:141
::std::string string
Definition: gtest-port.h:756
Declaration of the XMLPort helper classes and macros.
std::map< std::string, Question * > questions_
a map form the ids of npc textoptions to the objects containing them
Definition: Dialog.h:140
xmlelement
Definition: Super.h:519
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::string name_
name of the npc talking
Definition: Dialog.h:138
Mode
Definition: CorePrereqs.h:102
Declaration of BaseObject, the base class of all objects in Orxonox.
Defines several very important macros used to register objects, register classes, and to work with id...
Declaration of the OrxonoxOverlay class.
class containing the npc side of the Dialog
Definition: Question.h:51