2011-04-04 11:16:56 +02:00
|
|
|
#ifndef GAME_MMDIALOG_JOURNAL_H
|
|
|
|
#define GAME_MWDIALOG_JOURNAL_H
|
|
|
|
|
2011-04-04 11:23:15 +02:00
|
|
|
#include <string>
|
|
|
|
|
2011-04-04 11:16:56 +02:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
struct Environment;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWDialogue
|
|
|
|
{
|
|
|
|
class Journal
|
|
|
|
{
|
|
|
|
MWWorld::Environment& mEnvironment;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Journal (MWWorld::Environment& environment);
|
2011-04-04 11:23:15 +02:00
|
|
|
|
|
|
|
void addEntry (const std::string& id, int index);
|
|
|
|
///< Add a journal entry.
|
|
|
|
|
|
|
|
void setJournalIndex (const std::string& id, int index);
|
|
|
|
///< Set the journal index without adding an entry.
|
|
|
|
|
|
|
|
int getJournalIndex (const std::string& id) const;
|
|
|
|
///< Get the journal index.
|
2011-04-04 11:16:56 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|