nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::QuestWindow Class Reference

#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)

Detailed Description

A window with the quests an NPC gives, which opens when the player clicks them.

Definition at line 18 of file quest_window.h.

Constructor & Destructor Documentation

◆ QuestWindow()

nanommo::QuestWindow::QuestWindow ( Content content)
inlineexplicit

Definition at line 20 of file quest_window.h.

Member Function Documentation

◆ Build()

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.

◆ Close()

void nanommo::QuestWindow::Close ( )
inline

Definition at line 25 of file quest_window.h.

◆ Open()

void nanommo::QuestWindow::Open ( uint32_t npc,
std::string name,
std::vector< uint32_t > quests )

Definition at line 56 of file quest_window.cc.

◆ open()

bool nanommo::QuestWindow::open ( ) const
inline

Definition at line 24 of file quest_window.h.


The documentation for this class was generated from the following files: