dao::journal

The journal’s quests, current and completed.

Declared in dao/Journal.h.

Classes

Class  
Group A group the journal files quests under, such as the main plot or a place.
Quest One journal entry. A text field is empty if the entry has no such text.

Functions

Active()

std::optional<Quest> Active()

Returns the quest the player marked active, the one the map points to.

Call it on the game thread.

Returns nullopt if no quest is marked or no game is loaded

Completed()

std::vector<Quest> Completed()

Returns the journal’s list of finished quests.

Call it on the game thread.

Returns an empty list if no game is loaded

Current()

std::vector<Quest> Current()

Returns the quests in progress, in the journal’s order.

A finished part of a quest stays in this list with completed set. Call it on the game thread (dao/Frame.h).

Returns an empty list if no game is loaded

Groups()

std::vector<Group> Groups()

Returns the journal’s quest groups.

Call it on the game thread.

Returns an empty list if no game is loaded