dao::board
Declared in dao/Board.h.
Classes
| Class | |
|---|---|
| Quest | A quest a board offers. |
Functions
Accept()
bool Accept(std::size_t index)
Takes a quest of the board built now, as its Accept does: the plot’s accepted flag set, the plot’s script run.
Refused, false, for an index out of the board, and for a quest taken already, whose Accept the board greys out.
Close()
void Close()
Puts the board away, as its screen’s closing does, and closes the screen if it is up.
Quests()
std::vector<Quest> Quests(std::int32_t board)
Builds a board as the script command ShowChantersGUI does, with no screen opened, and returns its quests in its order: those of its plots not yet done whose offering flag is set.
Call it, and the rest, on the game thread. The board stays built until Close.
| Parameter | |
|---|---|
board |
a row of the jobboards table: 3 Lothering’s, 5 Denerim’s, 13 Redcliffe’s |
Returns none with no game loaded, for a board no row names, or with nothing offered
Shown()
std::vector<Quest> Shown()
Returns the quests of the board built now, by Quests or by the board’s screen.