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

#include <menu.h>

Public Types

enum class  Choice { kNothing , kLogOut , kQuit }

Public Member Functions

bool open () const
void Toggle ()
void Close ()
bool settings_open () const
void OpenSettings ()
void CloseSettings ()
Choice Build (Settings &settings, bool *reset_hotbar)
void BuildButtons (bool *character, bool *bag, bool *quests, bool *guild, bool *map, bool *help)

Detailed Description

The game's menu, which Escape opens over the world when nothing else is open, and the settings it leads to, which O opens too: the interface, sound, graphics, and the keys. The sky is the server's, so there's nothing of it to set, except to turn the weather, or the day and the night, off.

Definition at line 16 of file menu.h.

Member Enumeration Documentation

◆ Choice

enum class nanommo::Menu::Choice
strong
Enumerator
kNothing 
kLogOut 
kQuit 

Definition at line 26 of file menu.h.

Member Function Documentation

◆ Build()

Menu::Choice nanommo::Menu::Build ( Settings & settings,
bool * reset_hotbar )

Returns what the player picked, to log out or quit, if either. The settings window edits the player's settings; reset_hotbar is set when they ask for the hotbar's own order back.

Definition at line 98 of file menu.cc.

◆ BuildButtons()

void nanommo::Menu::BuildButtons ( bool * character,
bool * bag,
bool * quests,
bool * guild,
bool * map,
bool * help )

The row of round buttons in the bottom right, for the windows the keys open, with their keys in their tooltips, and this menu's.

Definition at line 263 of file menu.cc.

◆ Close()

void nanommo::Menu::Close ( )
inline

Definition at line 20 of file menu.h.

◆ CloseSettings()

void nanommo::Menu::CloseSettings ( )
inline

Definition at line 24 of file menu.h.

◆ open()

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

Definition at line 18 of file menu.h.

◆ OpenSettings()

void nanommo::Menu::OpenSettings ( )
inline

Definition at line 23 of file menu.h.

◆ settings_open()

bool nanommo::Menu::settings_open ( ) const
inline

Definition at line 22 of file menu.h.

◆ Toggle()

void nanommo::Menu::Toggle ( )
inline

Definition at line 19 of file menu.h.


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