|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <quest_window.h>
Public Member Functions | |
| QuestWindow (Content content) | |
| void | Open (uint32_t npc, std::string name, std::vector< uint32_t > quests) |
| bool | open () const |
| void | Close () |
| std::optional< protocol::Input > | Build (const protocol::Quests &yours) |
A window with the quests an NPC gives, which opens when the player clicks them.
Definition at line 18 of file quest_window.h.
|
inlineexplicit |
Definition at line 20 of file quest_window.h.
| std::optional< protocol::Input > nanommo::QuestWindow::Build | ( | const protocol::Quests & | yours | ) |
Draws the window, while it's open: what the NPC says giving each quest, what it asks for and what it gives, with a button to take it, how far the player is with it, or a button to turn it in once it's done. Returns what the player asks for, as an input with the quest to take or turn in.
Definition at line 63 of file quest_window.cc.
|
inline |
Definition at line 25 of file quest_window.h.
| void nanommo::QuestWindow::Open | ( | uint32_t | npc, |
| std::string | name, | ||
| std::vector< uint32_t > | quests ) |
Definition at line 56 of file quest_window.cc.
|
inline |
Definition at line 24 of file quest_window.h.