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

#include <herald_window.h>

Public Member Functions

 HeraldWindow (std::map< uint32_t, factions::Faction > factions)
void Open (uint32_t npc, std::string name, uint32_t faction)
 The herald, by the NPC's id, and their faction, by its id.
bool open () const
void Close ()
std::optional< uint32_t > Build (const std::vector< Figure > &figures)

Detailed Description

A herald's window, which opens when the player clicks one: the herald's faction, in its colour, and Enlist, while you're sworn to none, which asks once more before you swear, as it's for good. Once you're sworn, to theirs or another, it says to which.

Definition at line 20 of file herald_window.h.

Constructor & Destructor Documentation

◆ HeraldWindow()

nanommo::HeraldWindow::HeraldWindow ( std::map< uint32_t, factions::Faction > factions)
inlineexplicit

Definition at line 22 of file herald_window.h.

Member Function Documentation

◆ Build()

std::optional< uint32_t > nanommo::HeraldWindow::Build ( const std::vector< Figure > & figures)

Draws the window, while it's open, for you, among the figures. Returns the herald to swear at, by the NPC's id, once you've said you're sure, and closes.

Definition at line 32 of file herald_window.cc.

◆ Close()

void nanommo::HeraldWindow::Close ( )

Definition at line 27 of file herald_window.cc.

◆ Open()

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

The herald, by the NPC's id, and their faction, by its id.

Definition at line 20 of file herald_window.cc.

◆ open()

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

Definition at line 28 of file herald_window.h.


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