void Journal::addTopic (const std::string& topicId, const std::string& infoId) { TTopicContainer::iterator iter = mTopics.find (topicId); if (iter==mTopics.end()) { std::pair<TTopicContainer::iterator, bool> result = mTopics.insert (std::make_pair (topicId, Topic (topicId))); iter = result.first; } iter->second.addEntry (JournalEntry (topicId, infoId), *mEnvironment.mWorld); }
JournalEntry JournalEntry::makeFromQuest (const std::string& topic, int index) { return JournalEntry (topic, idFromIndex (topic, index), MWWorld::Ptr()); }
JournalEntry Topic::getEntry (const std::string& infoId) const { return JournalEntry (mTopic, infoId); }