addTopic function

pull/21/head
gugus 13 years ago
parent e7ef39cabc
commit ea8335a393

@ -390,6 +390,11 @@ namespace MWDialogue
DialogueManager::DialogueManager (MWWorld::Environment& environment) : mEnvironment (environment) {}
void DialogueManager::addTopic(std::string topic)
{
knownTopics[toLower(topic)] = true;
}
void DialogueManager::startDialogue (const MWWorld::Ptr& actor)
{
std::cout << "talking with " << MWWorld::Class::get (actor).getName (actor) << std::endl;

@ -29,6 +29,8 @@ namespace MWDialogue
void startDialogue (const MWWorld::Ptr& actor);
void addTopic(std::string topic);
//calbacks for the GUI
void keywordSelected(std::string keyword);
void goodbyeSelected();

Loading…
Cancel
Save