OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWDialogue::DialogueManager Class Reference

#include <dialoguemanagerimp.hpp>

List of all members.

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::StoragemTranslationDataStorage
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

Constructor & Destructor Documentation

MWDialogue::DialogueManager::DialogueManager ( const Compiler::Extensions extensions,
bool  scriptVerbose,
Translation::Storage translationDataStorage 
)

Member Function Documentation

void MWDialogue::DialogueManager::addTopic ( const std::string &  topic) [virtual]
void MWDialogue::DialogueManager::askQuestion ( const std::string &  question,
int  choice 
) [virtual]
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]

Return the actor the player is currently talking to.

Implements MWBase::DialogueManager.

bool MWDialogue::DialogueManager::isInChoice ( ) const [virtual]
void MWDialogue::DialogueManager::keywordSelected ( const std::string &  keyword) [virtual]
void MWDialogue::DialogueManager::parseText ( const std::string &  text) [private]
void MWDialogue::DialogueManager::persuade ( int  type) [virtual]
void MWDialogue::DialogueManager::questionAnswered ( int  answer) [virtual]
void MWDialogue::DialogueManager::say ( const MWWorld::Ptr actor,
const std::string &  topic 
) const [virtual]
void MWDialogue::DialogueManager::startDialogue ( const MWWorld::Ptr actor) [virtual]

Member Data Documentation

std::map<std::string, ESM::Dialogue> MWDialogue::DialogueManager::mDialogueMap [private]
std::map<std::string, bool> MWDialogue::DialogueManager::mKnownTopics [private]

The documentation for this class was generated from the following files: