1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/apps/openmw/mwdialogue/journalentry.hpp

47 lines
1.0 KiB
C++
Raw Normal View History

2012-08-11 10:02:51 +00:00
#ifndef GAME_MWDIALOGUE_JOURNALENTRY_H
#define GAME_MWDIALOGUE_JOURNALENTRY_H
2011-04-19 08:54:11 +00:00
#include <string>
2013-04-25 08:27:43 +00:00
namespace MWWorld
2011-04-19 08:54:11 +00:00
{
struct ESMStore;
}
namespace MWDialogue
{
/// \brief A quest or dialogue entry
2011-04-19 08:54:11 +00:00
struct JournalEntry
{
std::string mTopic;
std::string mInfoId;
JournalEntry();
JournalEntry (const std::string& topic, const std::string& infoId);
2011-04-19 08:54:11 +00:00
2012-10-01 15:17:04 +00:00
std::string getText (const MWWorld::ESMStore& store) const;
static JournalEntry makeFromQuest (const std::string& topic, int index);
static std::string idFromIndex (const std::string& topic, int index);
2011-04-19 08:54:11 +00:00
};
2013-04-25 08:27:43 +00:00
/// \brief A quest entry with a timestamp.
struct StampedJournalEntry : public JournalEntry
{
int mDay;
int mMonth;
int mDayOfMonth;
StampedJournalEntry();
StampedJournalEntry (const std::string& topic, const std::string& infoId,
int day, int month, int dayOfMonth);
static StampedJournalEntry makeFromQuest (const std::string& topic, int index);
};
2011-04-19 08:54:11 +00:00
}
#endif