diff --git a/apps/openmw/mwbase/dialoguemanager.hpp b/apps/openmw/mwbase/dialoguemanager.hpp index 2e58403248..6228fd238e 100644 --- a/apps/openmw/mwbase/dialoguemanager.hpp +++ b/apps/openmw/mwbase/dialoguemanager.hpp @@ -54,14 +54,14 @@ namespace MWBase virtual bool startDialogue (const MWWorld::Ptr& actor, ResponseCallback* callback) = 0; - virtual bool inJournal (const std::string& topicId, const std::string& infoId) = 0; + virtual bool inJournal (const std::string& topicId, const std::string& infoId) const = 0; virtual void addTopic(std::string_view topic) = 0; virtual void addChoice(std::string_view text,int choice) = 0; - virtual const std::vector >& getChoices() = 0; + virtual const std::vector >& getChoices() const = 0; - virtual bool isGoodbye() = 0; + virtual bool isGoodbye() const = 0; virtual void goodbye() = 0; diff --git a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp index d06fbbfd40..6908cc5fd1 100644 --- a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp +++ b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp @@ -257,7 +257,7 @@ namespace MWDialogue } } - bool DialogueManager::inJournal (const std::string& topicId, const std::string& infoId) + bool DialogueManager::inJournal(const std::string& topicId, const std::string& infoId) const { const MWDialogue::Topic *topicHistory = nullptr; MWBase::Journal *journal = MWBase::Environment::get().getJournal(); @@ -524,12 +524,12 @@ namespace MWDialogue mChoices.emplace_back(text, choice); } - const std::vector >& DialogueManager::getChoices() + const std::vector>& DialogueManager::getChoices() const { return mChoices; } - bool DialogueManager::isGoodbye() + bool DialogueManager::isGoodbye() const { return mGoodbye; } diff --git a/apps/openmw/mwdialogue/dialoguemanagerimp.hpp b/apps/openmw/mwdialogue/dialoguemanagerimp.hpp index e611e52315..df6cc4893f 100644 --- a/apps/openmw/mwdialogue/dialoguemanagerimp.hpp +++ b/apps/openmw/mwdialogue/dialoguemanagerimp.hpp @@ -85,14 +85,14 @@ namespace MWDialogue std::list getAvailableTopics() override; int getTopicFlag(const std::string& topicId) const override; - bool inJournal (const std::string& topicId, const std::string& infoId) override; + bool inJournal (const std::string& topicId, const std::string& infoId) const override; void addTopic(std::string_view topic) override; void addChoice(std::string_view text,int choice) override; - const std::vector >& getChoices() override; + const std::vector >& getChoices() const override; - bool isGoodbye() override; + bool isGoodbye() const override; void goodbye() override;