|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <talk_window.h>
Public Member Functions | |
| void | Open (uint32_t npc, std::string name) |
| bool | open () const |
| void | Close () |
| std::optional< protocol::Talk > | Build () |
A window to talk to an NPC, such as the storyteller, which opens when the player clicks it.
Definition at line 16 of file talk_window.h.
| std::optional< protocol::Talk > nanommo::TalkWindow::Build | ( | ) |
Draws the window, while it's open. Returns what the player says to the NPC, once they ask, and closes.
Definition at line 21 of file talk_window.cc.
|
inline |
Definition at line 21 of file talk_window.h.
| void nanommo::TalkWindow::Open | ( | uint32_t | npc, |
| std::string | name ) |
Definition at line 15 of file talk_window.cc.
|
inline |
Definition at line 20 of file talk_window.h.