2011-04-04 09:16:56 +00:00
|
|
|
|
|
|
|
#include "journal.hpp"
|
|
|
|
|
2011-04-21 09:05:49 +00:00
|
|
|
#include "../mwworld/environment.hpp"
|
2011-04-04 09:23:15 +00:00
|
|
|
|
|
|
|
#include <iostream>
|
2011-04-04 09:16:56 +00:00
|
|
|
namespace MWDialogue
|
|
|
|
{
|
2011-04-04 09:23:15 +00:00
|
|
|
Journal::Journal (MWWorld::Environment& environment)
|
2011-04-04 09:16:56 +00:00
|
|
|
: mEnvironment (environment)
|
|
|
|
{}
|
|
|
|
|
2011-04-04 09:23:15 +00:00
|
|
|
void Journal::addEntry (const std::string& id, int index)
|
|
|
|
{
|
2011-04-22 09:16:39 +00:00
|
|
|
mJournal.push_back (StampedJournalEntry::makeFromQuest (id, index, *mEnvironment.mWorld));
|
2011-04-04 09:23:15 +00:00
|
|
|
std::cout << "journal: " << id << " at " << index << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Journal::setJournalIndex (const std::string& id, int index)
|
|
|
|
{
|
|
|
|
std::cout << "journal (no entry): " << id << " at " << index << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Journal::getJournalIndex (const std::string& id) const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2011-04-19 09:02:22 +00:00
|
|
|
|
|
|
|
Journal::TEntryIter Journal::begin() const
|
|
|
|
{
|
|
|
|
return mJournal.begin();
|
|
|
|
}
|
|
|
|
|
|
|
|
Journal::TEntryIter Journal::end() const
|
|
|
|
{
|
|
|
|
return mJournal.end();
|
|
|
|
}
|
2011-04-04 09:16:56 +00:00
|
|
|
}
|