mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
75f64aa38b
Conflicts: apps/openmw/mwdialogue/dialoguemanagerimp.hpp apps/openmw/mwmechanics/npcstats.cpp apps/openmw/mwmechanics/npcstats.hpp
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
#ifndef GAME_MWBASE_DIALOGUEMANAGER_H
|
|
#define GAME_MWBASE_DIALOGUEMANAGER_H
|
|
|
|
#include <string>
|
|
|
|
namespace MWWorld
|
|
{
|
|
class Ptr;
|
|
}
|
|
|
|
namespace MWBase
|
|
{
|
|
/// \brief Interface for dialogue manager (implemented in MWDialogue)
|
|
class DialogueManager
|
|
{
|
|
DialogueManager (const DialogueManager&);
|
|
///< not implemented
|
|
|
|
DialogueManager& operator= (const DialogueManager&);
|
|
///< not implemented
|
|
|
|
public:
|
|
|
|
DialogueManager() {}
|
|
|
|
virtual ~DialogueManager() {}
|
|
|
|
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;
|
|
|
|
virtual MWWorld::Ptr getActor() const = 0;
|
|
///< Return the actor the player is currently talking to.
|
|
|
|
//calbacks for the GUI
|
|
virtual void keywordSelected (const std::string& keyword) = 0;
|
|
virtual void goodbyeSelected() = 0;
|
|
virtual void questionAnswered (const std::string& answer) = 0;
|
|
|
|
virtual void persuade (int type) = 0;
|
|
virtual int getTemporaryDispositionChange () const = 0;
|
|
virtual void applyTemporaryDispositionChange (int delta) = 0;
|
|
};
|
|
}
|
|
|
|
#endif
|