1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/openmw/mwdialogue/journal.cpp

39 lines
893 B
C++
Raw Normal View History

2011-04-04 09:16:56 +00:00
#include "journal.hpp"
#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)
{
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;
}
Journal::TEntryIter Journal::begin() const
{
return mJournal.begin();
}
Journal::TEntryIter Journal::end() const
{
return mJournal.end();
}
2011-04-04 09:16:56 +00:00
}