#include <conversation.h>
Classes | |
class | Keyword |
class | Question |
Public Types | |
typedef Common::HashMap< Common::String, Keyword * > | KeywordMap |
Public Member Functions | |
const Common::String & | getName () const |
const Common::String & | getPronoun () const |
const Common::String & | getPrompt () const |
Response * | getIntro (bool familiar=false) |
Response * | getLongIntro (bool familiar=false) |
Response * | getDefaultAnswer () |
Dialogue::Question * | getQuestion () |
void | setName (const Common::String &n) |
void | setPronoun (const Common::String &pn) |
void | setPrompt (const Common::String &prompt) |
void | setIntro (Response *i) |
void | setLongIntro (Response *i) |
void | setDefaultAnswer (Response *a) |
void | setTurnAwayProb (int prob) |
void | setQuestion (Question *q) |
void | addKeyword (const Common::String &kw, Response *response) |
const ResponsePart & | getAction () const |
Common::String | dump (const Common::String &arg) |
Keyword * | operator[] (const Common::String &kw) |
The dialogue class, which holds conversation information for townspeople and others who may talk to you. It includes information like pronouns, keywords, actual conversation text (of course), questions, and what happens when you answer these questions.
A mapping of keywords to the Keyword object that represents them