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

#include <guild_window.h>

Public Member Functions

bool * mutable_visible ()
bool visible () const
void Toggle ()
void Invited (protocol::GuildInvite invite)
std::optional< protocol::GuildAction > Build (const protocol::Guild &yours, uint32_t you)

Detailed Description

Your guild, in a window of its own, which G opens and closes: a name to found one with while you're in none, and its name and your rank once you are, its war while it's in one, and a name to ask someone in by, for an officer or the leader.

Definition at line 23 of file guild_window.h.

Member Function Documentation

◆ Build()

std::optional< protocol::GuildAction > nanommo::GuildWindow::Build ( const protocol::Guild & yours,
uint32_t you )

Draws the question, if a guild asked, and the window, while it's open, for you, by your character's id. A right-click on someone in the roster opens a menu of what your rank lets you do to theirs. Returns what the player asks for, which the server does, or says in the chat why not.

Definition at line 48 of file guild_window.cc.

◆ Invited()

void nanommo::GuildWindow::Invited ( protocol::GuildInvite invite)

A guild asked you to join, which the window asks you about, open or not, until you answer or the invitation runs out.

Definition at line 43 of file guild_window.cc.

◆ mutable_visible()

bool * nanommo::GuildWindow::mutable_visible ( )
inline

Definition at line 25 of file guild_window.h.

◆ Toggle()

void nanommo::GuildWindow::Toggle ( )
inline

Definition at line 27 of file guild_window.h.

◆ visible()

bool nanommo::GuildWindow::visible ( ) const
inline

Definition at line 26 of file guild_window.h.


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