OpenMW
|
#include <dialoguemanagerimp.hpp>
Public Member Functions | |
DialogueManager (const Compiler::Extensions &extensions, bool scriptVerbose, Translation::Storage &translationDataStorage) | |
virtual void | clear () |
virtual bool | isInChoice () const |
virtual void | startDialogue (const MWWorld::Ptr &actor) |
virtual void | addTopic (const std::string &topic) |
virtual void | askQuestion (const std::string &question, int choice) |
virtual void | goodbye () |
virtual MWWorld::Ptr | getActor () const |
Return the actor the player is currently talking to. | |
virtual bool | checkServiceRefused () |
virtual void | say (const MWWorld::Ptr &actor, const std::string &topic) const |
virtual void | keywordSelected (const std::string &keyword) |
virtual void | goodbyeSelected () |
virtual void | questionAnswered (int answer) |
virtual void | persuade (int type) |
virtual int | getTemporaryDispositionChange () const |
virtual void | applyTemporaryDispositionChange (int delta) |
Private Member Functions | |
void | parseText (const std::string &text) |
void | updateTopics () |
bool | compile (const std::string &cmd, std::vector< Interpreter::Type_Code > &code) |
void | executeScript (const std::string &script) |
void | executeTopic (const std::string &topic, bool randomResponse=false) |
Private Attributes | |
std::map< std::string, ESM::Dialogue > | mDialogueMap |
std::map< std::string, bool > | mKnownTopics |
std::list< std::string > | mActorKnownTopics |
Translation::Storage & | mTranslationDataStorage |
MWScript::CompilerContext | mCompilerContext |
std::ostream | mErrorStream |
Compiler::StreamErrorHandler | mErrorHandler |
MWWorld::Ptr | mActor |
bool | mTalkedTo |
int | mChoice |
std::string | mLastTopic |
bool | mIsInChoice |
float | mTemporaryDispositionChange |
float | mPermanentDispositionChange |
bool | mScriptVerbose |
MWDialogue::DialogueManager::DialogueManager | ( | const Compiler::Extensions & | extensions, |
bool | scriptVerbose, | ||
Translation::Storage & | translationDataStorage | ||
) |
void MWDialogue::DialogueManager::addTopic | ( | const std::string & | topic | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::applyTemporaryDispositionChange | ( | int | delta | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::askQuestion | ( | const std::string & | question, |
int | choice | ||
) | [virtual] |
Implements MWBase::DialogueManager.
bool MWDialogue::DialogueManager::checkServiceRefused | ( | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::clear | ( | ) | [virtual] |
Implements MWBase::DialogueManager.
bool MWDialogue::DialogueManager::compile | ( | const std::string & | cmd, |
std::vector< Interpreter::Type_Code > & | code | ||
) | [private] |
void MWDialogue::DialogueManager::executeScript | ( | const std::string & | script | ) | [private] |
void MWDialogue::DialogueManager::executeTopic | ( | const std::string & | topic, |
bool | randomResponse = false |
||
) | [private] |
MWWorld::Ptr MWDialogue::DialogueManager::getActor | ( | ) | const [virtual] |
Return the actor the player is currently talking to.
Implements MWBase::DialogueManager.
int MWDialogue::DialogueManager::getTemporaryDispositionChange | ( | ) | const [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::goodbye | ( | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::goodbyeSelected | ( | ) | [virtual] |
Implements MWBase::DialogueManager.
bool MWDialogue::DialogueManager::isInChoice | ( | ) | const [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::keywordSelected | ( | const std::string & | keyword | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::parseText | ( | const std::string & | text | ) | [private] |
void MWDialogue::DialogueManager::persuade | ( | int | type | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::questionAnswered | ( | int | answer | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::say | ( | const MWWorld::Ptr & | actor, |
const std::string & | topic | ||
) | const [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::startDialogue | ( | const MWWorld::Ptr & | actor | ) | [virtual] |
Implements MWBase::DialogueManager.
void MWDialogue::DialogueManager::updateTopics | ( | ) | [private] |
std::list<std::string> MWDialogue::DialogueManager::mActorKnownTopics [private] |
int MWDialogue::DialogueManager::mChoice [private] |
std::map<std::string, ESM::Dialogue> MWDialogue::DialogueManager::mDialogueMap [private] |
std::ostream MWDialogue::DialogueManager::mErrorStream [private] |
bool MWDialogue::DialogueManager::mIsInChoice [private] |
std::map<std::string, bool> MWDialogue::DialogueManager::mKnownTopics [private] |
std::string MWDialogue::DialogueManager::mLastTopic [private] |
float MWDialogue::DialogueManager::mPermanentDispositionChange [private] |
bool MWDialogue::DialogueManager::mScriptVerbose [private] |
bool MWDialogue::DialogueManager::mTalkedTo [private] |
float MWDialogue::DialogueManager::mTemporaryDispositionChange [private] |