|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#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) |
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.
|
inlineexplicit |
Definition at line 22 of file herald_window.h.
| 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.
| void nanommo::HeraldWindow::Close | ( | ) |
Definition at line 27 of file herald_window.cc.
| 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.
|
inline |
Definition at line 28 of file herald_window.h.