OpenMW
Public Member Functions | Private Attributes
MWDialogue::Quest Class Reference

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

#include <quest.hpp>

List of all members.

Public Member Functions

 Quest ()
 Quest (const std::string &topic)
const std::string getName () const
 May be an empty string.
int getIndex () const
void setIndex (int index)
 Calling this function with a non-existant index while throw an exception.
bool isFinished () const
virtual void addEntry (const JournalEntry &entry)

Private Attributes

int mIndex
bool mFinished

Detailed Description

A quest in progress or a compelted quest.


Constructor & Destructor Documentation

MWDialogue::Quest::Quest ( const std::string &  topic)

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.
Todo:
cleanup info structure

Reimplemented from MWDialogue::Topic.

const std::string MWDialogue::Quest::getName ( ) const

May be an empty string.

Reimplemented from MWDialogue::Topic.

void MWDialogue::Quest::setIndex ( int  index)

Calling this function with a non-existant index while throw an exception.


Member Data Documentation


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