1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/apps/openmw/mwdialogue/quest.hpp

38 lines
869 B
C++
Raw Normal View History

2012-08-11 10:02:51 +00:00
#ifndef GAME_MWDIALOG_QUEST_H
2011-04-26 18:08:37 +00:00
#define GAME_MWDIALOG_QUEST_H
#include "topic.hpp"
2011-04-26 18:08:37 +00:00
namespace MWDialogue
{
/// \brief A quest in progress or a compelted quest
class Quest : public Topic
2011-04-26 18:08:37 +00:00
{
int mIndex;
bool mFinished;
public:
Quest();
Quest (const std::string& topic);
const std::string getName() const;
2011-04-26 18:08:37 +00:00
///< May be an empty string
int getIndex() const;
void setIndex (int index);
2011-04-26 18:08:37 +00:00
///< Calling this function with a non-existant index while throw an exception.
bool isFinished() const;
virtual void addEntry (const JournalEntry& entry);
2011-04-26 18:08:37 +00:00
///< Add entry and adjust index accordingly.
///
/// \note Redundant entries are ignored, but the index is still adjusted.
};
}
#endif