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

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

Detailed Description

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.

Member Function Documentation

◆ Build()

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.

◆ Close()

void nanommo::TalkWindow::Close ( )
inline

Definition at line 21 of file talk_window.h.

◆ Open()

void nanommo::TalkWindow::Open ( uint32_t npc,
std::string name )

Definition at line 15 of file talk_window.cc.

◆ open()

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

Definition at line 20 of file talk_window.h.


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