2012-08-09 10:05:47 +00:00
|
|
|
#ifndef GAME_MWBASE_DIALOGUEMANAGER_H
|
|
|
|
#define GAME_MWBASE_DIALOGUEMANAGER_H
|
2012-08-09 08:35:53 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2014-03-05 16:08:58 +00:00
|
|
|
#include <stdint.h>
|
2014-02-16 11:54:27 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
}
|
|
|
|
|
2012-08-09 08:35:53 +00:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWBase
|
|
|
|
{
|
2012-08-09 10:05:47 +00:00
|
|
|
/// \brief Interface for dialogue manager (implemented in MWDialogue)
|
2012-08-09 08:35:53 +00:00
|
|
|
class DialogueManager
|
|
|
|
{
|
|
|
|
DialogueManager (const DialogueManager&);
|
|
|
|
///< not implemented
|
|
|
|
|
|
|
|
DialogueManager& operator= (const DialogueManager&);
|
|
|
|
///< not implemented
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
DialogueManager() {}
|
|
|
|
|
2013-05-15 15:54:18 +00:00
|
|
|
virtual void clear() = 0;
|
|
|
|
|
2012-08-09 08:35:53 +00:00
|
|
|
virtual ~DialogueManager() {}
|
|
|
|
|
2013-03-31 11:13:46 +00:00
|
|
|
virtual bool isInChoice() const = 0;
|
|
|
|
|
2012-08-09 08:35:53 +00:00
|
|
|
virtual void startDialogue (const MWWorld::Ptr& actor) = 0;
|
|
|
|
|
|
|
|
virtual void addTopic (const std::string& topic) = 0;
|
|
|
|
|
|
|
|
virtual void askQuestion (const std::string& question,int choice) = 0;
|
|
|
|
|
|
|
|
virtual void goodbye() = 0;
|
|
|
|
|
2012-11-10 13:31:58 +00:00
|
|
|
virtual MWWorld::Ptr getActor() const = 0;
|
|
|
|
///< Return the actor the player is currently talking to.
|
2012-08-09 08:35:53 +00:00
|
|
|
|
2013-07-24 17:02:50 +00:00
|
|
|
virtual void say(const MWWorld::Ptr &actor, const std::string &topic) const = 0;
|
|
|
|
|
2012-08-09 08:35:53 +00:00
|
|
|
//calbacks for the GUI
|
|
|
|
virtual void keywordSelected (const std::string& keyword) = 0;
|
|
|
|
virtual void goodbyeSelected() = 0;
|
2013-05-04 12:15:47 +00:00
|
|
|
virtual void questionAnswered (int answer) = 0;
|
2012-11-09 23:29:36 +00:00
|
|
|
|
2013-03-16 19:32:21 +00:00
|
|
|
virtual bool checkServiceRefused () = 0;
|
|
|
|
|
2012-11-09 23:29:36 +00:00
|
|
|
virtual void persuade (int type) = 0;
|
|
|
|
virtual int getTemporaryDispositionChange () const = 0;
|
2014-01-08 00:24:06 +00:00
|
|
|
virtual void applyDispositionChange (int delta) = 0;
|
2014-02-16 11:54:27 +00:00
|
|
|
|
|
|
|
virtual int countSavedGameRecords() const = 0;
|
|
|
|
|
|
|
|
virtual void write (ESM::ESMWriter& writer) const = 0;
|
|
|
|
|
|
|
|
virtual void readRecord (ESM::ESMReader& reader, int32_t type) = 0;
|
2012-08-09 08:35:53 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|