HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Classes | Namespaces | Macros | Typedefs | Functions | Variables
config.cpp File Reference

Configuration – initial settings, saving/loading ini files, menus, etc. More...

#include "hyper.h"

Classes

struct  hr::supersaver
 
struct  hr::dsaver< T >
 
struct  hr::saver< T >
 
struct  hr::saverenum< T >
 
struct  hr::saver< int >
 
struct  hr::saver< char >
 
struct  hr::saver< bool >
 
struct  hr::saver< unsigned >
 
struct  hr::saver< string >
 
struct  hr::saver< ld >
 
struct  hr::charstyle_old
 

Namespaces

 hr
 

Macros

#define DEFAULT_WALLMODE   (ISMOBILE ? 3 : 5)
 
#define DEFAULT_MONMODE   (ISMOBILE ? 2 : 4)
 
#define ANDROID_SETTINGS   ;
 

Typedefs

typedef vector< shared_ptr< supersaver > > hr::saverlist
 

Functions

template<class T , class U , class V >
void hr::addsaver (T &i, U name, V dft)
 
template<class T >
void hr::addsaver (T &i, string name)
 
template<class T , class U >
void hr::addsaverenum (T &i, U name, T dft)
 
template<class T , class U >
void hr::addsaverenum (T &i, U name)
 
void hr::addparam (ld &val, const string s)
 
EX charstyle & hr::getcs (int id IS(multi::cpid))
 
EX void hr::hread (hstream &hs, charstyle &cs)
 
EX void hr::hwrite (hstream &hs, const charstyle &cs)
 
EX string hr::csnameid (int id)
 
EX string hr::csname (charstyle &cs)
 
EX int hr::playergender ()
 
EX int hr::princessgender ()
 
EX int hr::lang ()
 
EX void hr::addsaver (charstyle &cs, string s)
 
EX void hr::initcs (charstyle &cs)
 
EX void hr::savecolortable (colortable &ct, string name)
 
EX void hr::initConfig ()
 
EX bool hr::inSpecialMode ()
 
EX bool hr::have_current_settings ()
 
EX bool hr::have_current_graph_settings ()
 
EX void hr::reset_graph_settings ()
 
EX void hr::resetModes (char leave IS('c'))
 
EX void hr::resetConfig ()
 
EX void hr::saveConfig ()
 
void hr::readf (FILE *f, ld &x)
 
EX void hr::parseline (const string &str)
 
EX void hr::loadNewConfig (FILE *f)
 
EX void hr::loadConfig ()
 
EX void hr::add_cells_drawn (char c IS('C'))
 
string hr::solhelp ()
 
EX void hr::edit_sightrange ()
 
EX void hr::menuitem_sightrange (char c IS('c'))
 
EX void hr::showSpecialEffects ()
 
EX void hr::showGraphConfig ()
 
EX void hr::switchFullscreen ()
 
EX void hr::switchGL ()
 
EX void hr::edit_whatever (char type, int index)
 
EX void hr::configureOther ()
 
EX void hr::configureInterface ()
 
EX void hr::showJoyConfig ()
 
EX void hr::projectionDialog ()
 
EX void hr::explain_detail ()
 
EX void hr::add_edit_fov (char key IS('f'))
 
bool hr::supported_ods ()
 
EX void hr::showStereo ()
 
EX void hr::config_camera_rotation ()
 
EX void hr::add_edit_wall_quality (char c)
 
EX void hr::edit_levellines (char c)
 
EX void hr::show3D ()
 
EX void hr::switchcolor (unsigned int &c, unsigned int *cs)
 
EX void hr::showCustomizeChar ()
 
EX void hr::refresh_canvas ()
 
EX void hr::edit_color_table (colortable &ct, const reaction_t &r IS(reaction_t()), bool has_bit IS(false))
 
EX void hr::show_color_dialog ()
 
EX void hr::resetConfigMenu ()
 
EX void hr::selectLanguageScreen ()
 
EX void hr::configureMouse ()
 
EX void hr::showSettings ()
 
EX int hr::read_color_args ()
 
EX int hr::read_config_args ()
 
EX int hr::read_gamemode_args ()
 

Variables

saverlist hr::savers
 
EX ld hr::bounded_mine_percentage = 0.1
 
EX int hr::bounded_mine_quantity
 
EX int hr::bounded_mine_max
 
const EX char * hr::conffile = "hyperrogue.ini"
 
EX array< ld, gGUARD > hr::sightranges
 
EX videopar hr::vid
 
EX int hr::default_language
 
EX bool hr::autojoy = true
 
unsigned int hr::skincolors [] = { 7, 0xD0D0D0FF, 0xEFD0C9FF, 0xC77A58FF, 0xA58869FF, 0x602010FF, 0xFFDCB1FF, 0xEDE4C8FF }
 
unsigned int hr::haircolors [] = { 8, 0x686868FF, 0x8C684AFF, 0xF2E1AEFF, 0xB55239FF, 0xFFFFFFFF, 0x804000FF, 0x502810FF, 0x301800FF }
 
unsigned int hr::dresscolors [] = { 6, 0xC00000FF, 0x00C000FF, 0x0000C0FF, 0xC0C000FF, 0xC0C0C0FF, 0x202020FF }
 
unsigned int hr::dresscolors2 [] = { 7, 0x8080FFC0, 0x80FF80C0, 0xFF8080C0, 0xFFFF80C0, 0xFF80FFC0, 0x80FFFFC0, 0xFFFFFF80 }
 
unsigned int hr::swordcolors [] = { 6, 0xC0C0C0FF, 0xFFFFFFFF, 0xFFC0C0FF, 0xC0C0FFFF, 0x808080FF, 0x202020FF }
 
unsigned int hr::eyecolors [] = { 4, 0x00C000FF, 0x0000C0FF, 0xC00000FF, 0xC0C000FF, 0x804010FF, 0x00C000FF }
 
EX purehookset hr::hooks_configfile
 
map< string, shared_ptr< supersaver > > hr::allconfigs
 
double hr::cc_footphase
 
int hr::lmousex
 
int hr::lmousey
 
auto hr::ah_config = addHook(hooks_args, 0, read_config_args) + addHook(hooks_args, 0, read_gamemode_args) + addHook(hooks_args, 0, read_color_args)
 
EX unordered_map< string, ld & > hr::params
 

Detailed Description

Configuration – initial settings, saving/loading ini files, menus, etc.