OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
GameConfig::Settings Class Reference

#include <GameConfig.h>

Inheritance diagram for GameConfig::Settings:
ConfigSection

Public Member Functions

 Settings (GameConfig *config)
 
- Public Member Functions inherited from ConfigSection
 ConfigSection (Config *config, std::string_view name)
 
 ConfigSection (const ConfigSection &other)=delete
 
 ConfigSection (ConfigSection &&other)=delete
 
Configconfig () const
 
const std::string & name () const
 
void registerEntry (AnyConfigEntry *entry)
 
AnyConfigEntryentry (std::string_view name) const
 
std::vector< AnyConfigEntry * > entries () const
 

Public Attributes

Bool AlwaysRun = {this, "always_run", true, "Enable always run."}
 
Bool FlipOnExit = {this, "flip_on_exit", false, "Flip 180 degrees when leaving a building."}
 
Bool ShowHits = {this, "show_hits", true, "Show HP status in status bar."}
 
Int MusicLevel = {this, "music_level", 3, &ValidateLevel, "Music volume level."}
 
Int SoundLevel = {this, "sound_level", 4, &ValidateLevel, "Sound volume level."}
 
Int VoiceLevel = {this, "voice_level", 5, &ValidateLevel, "Voice volume level."}
 
Int ScreenshotNumber = {this, "screenshot_number", 0, "Last saved screenshot number."}
 
Int TurnSpeed
 
Int VerticalTurnSpeed = {this, "vertical_turn_speed", 25, &ValidateVerticalTurnSpeed, "Discrete vertical turn speed."}
 
Bool WalkSound = {this, "walk_sound", true, "Enable footsteps sound when walking."}
 

Static Private Member Functions

static int ValidateLevel (int level)
 
static int ValidateVerticalTurnSpeed (int speed)
 
static int ValidateTurnSpeed (int speed)
 

Constructor & Destructor Documentation

◆ Settings()

GameConfig::Settings::Settings ( GameConfig config)
inlineexplicit

Member Function Documentation

◆ ValidateLevel()

static int GameConfig::Settings::ValidateLevel ( int  level)
inlinestaticprivate

◆ ValidateTurnSpeed()

static int GameConfig::Settings::ValidateTurnSpeed ( int  speed)
inlinestaticprivate

◆ ValidateVerticalTurnSpeed()

static int GameConfig::Settings::ValidateVerticalTurnSpeed ( int  speed)
inlinestaticprivate

Member Data Documentation

◆ AlwaysRun

Bool GameConfig::Settings::AlwaysRun = {this, "always_run", true, "Enable always run."}

◆ FlipOnExit

Bool GameConfig::Settings::FlipOnExit = {this, "flip_on_exit", false, "Flip 180 degrees when leaving a building."}

◆ MusicLevel

Int GameConfig::Settings::MusicLevel = {this, "music_level", 3, &ValidateLevel, "Music volume level."}

◆ ScreenshotNumber

Int GameConfig::Settings::ScreenshotNumber = {this, "screenshot_number", 0, "Last saved screenshot number."}

◆ ShowHits

Bool GameConfig::Settings::ShowHits = {this, "show_hits", true, "Show HP status in status bar."}

◆ SoundLevel

Int GameConfig::Settings::SoundLevel = {this, "sound_level", 4, &ValidateLevel, "Sound volume level."}

◆ TurnSpeed

Int GameConfig::Settings::TurnSpeed
Initial value:
= {this, "turn_speed", 0, &ValidateTurnSpeed,
"Discrete turn speed, use 0 for smooth, 16 for 64 degrees turn, 32 for 128 degrees turn, etc. "
"Only smooth is usable on modern machines."}
static int ValidateTurnSpeed(int speed)
Definition: GameConfig.h:614

◆ VerticalTurnSpeed

Int GameConfig::Settings::VerticalTurnSpeed = {this, "vertical_turn_speed", 25, &ValidateVerticalTurnSpeed, "Discrete vertical turn speed."}

◆ VoiceLevel

Int GameConfig::Settings::VoiceLevel = {this, "voice_level", 5, &ValidateLevel, "Voice volume level."}

◆ WalkSound

Bool GameConfig::Settings::WalkSound = {this, "walk_sound", true, "Enable footsteps sound when walking."}

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