OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWDialogue::Quest Class Reference

A quest in progress or a completed quest. More...

#include <quest.hpp>

Inheritance diagram for MWDialogue::Quest:
Collaboration diagram for MWDialogue::Quest:

Public Member Functions

 Quest ()
 
 Quest (const std::string &topic)
 
 Quest (const ESM::QuestState &state)
 
virtual std::string getName () const
 May be an empty string. More...
 
int getIndex () const
 
void setIndex (int index)
 Calling this function with a non-existent index will throw an exception. More...
 
bool isFinished () const
 
virtual void addEntry (const JournalEntry &entry)
 
void write (ESM::QuestState &state) const
 
- Public Member Functions inherited from MWDialogue::Topic
 Topic ()
 
 Topic (const std::string &topic)
 
virtual ~Topic ()
 
void insertEntry (const ESM::JournalEntry &entry)
 
std::string getTopic () const
 
void removeLastAddedResponse (const std::string &actorName)
 
TEntryIter begin () const
 Iterator pointing to the begin of the journal for this topic. More...
 
TEntryIter end () const
 Iterator pointing past the end of the journal for this topic. More...
 

Private Attributes

int mIndex
 
bool mFinished
 

Additional Inherited Members

- Public Types inherited from MWDialogue::Topic
typedef std::vector< EntryTEntryContainer
 
typedef
TEntryContainer::const_iterator 
TEntryIter
 
- Protected Attributes inherited from MWDialogue::Topic
std::string mTopic
 
std::string mName
 
TEntryContainer mEntries
 

Detailed Description

A quest in progress or a completed quest.

Constructor & Destructor Documentation

MWDialogue::Quest::Quest ( )
MWDialogue::Quest::Quest ( const std::string &  topic)
MWDialogue::Quest::Quest ( const ESM::QuestState state)

Member Function Documentation

void MWDialogue::Quest::addEntry ( const JournalEntry entry)
virtual

Add entry and adjust index accordingly.

Note
Redundant entries are ignored, but the index is still adjusted.

Reimplemented from MWDialogue::Topic.

Here is the call graph for this function:

Here is the caller graph for this function:

int MWDialogue::Quest::getIndex ( ) const
std::string MWDialogue::Quest::getName ( ) const
virtual

May be an empty string.

Reimplemented from MWDialogue::Topic.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWDialogue::Quest::isFinished ( ) const
void MWDialogue::Quest::setIndex ( int  index)

Calling this function with a non-existent index will throw an exception.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWDialogue::Quest::write ( ESM::QuestState state) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool MWDialogue::Quest::mFinished
private
int MWDialogue::Quest::mIndex
private

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