ManaPlus
Public Member Functions | Data Fields
Options Struct Reference

#include <options.h>

Public Member Functions

 Options ()
 

Data Fields

std::string username
 
std::string password
 
std::string character
 
std::string brandingPath
 
std::string updateHost
 
std::string dataPath
 
std::string homeDir
 
std::string logFileName
 
std::string chatLogDir
 
std::string configDir
 
std::string localDataDir
 
std::string screenshotDir
 
std::string test
 
std::string serverName
 
std::string serverType
 
int renderer
 
uint16_t serverPort
 
bool printHelp
 
bool printVersion
 
bool skipUpdate
 
bool chooseDefault
 
bool noOpenGL
 
bool safeMode
 
bool testMode
 
bool ipc
 
bool hideCursor
 
bool error
 
bool validate
 

Detailed Description

A structure holding the values of various options that can be passed from the command line.

Definition at line 41 of file options.h.

Constructor & Destructor Documentation

◆ Options()

Options::Options ( )
inline

Definition at line 43 of file options.h.

43  :
44  username(),
45  password(),
46  character(),
47  brandingPath(),
48  updateHost(),
49  dataPath(),
50  homeDir(),
51  logFileName(),
52  chatLogDir(),
53  configDir(),
54  localDataDir(),
55  screenshotDir(),
56  test(),
57  serverName(),
58  serverType(),
59  renderer(-1),
60  serverPort(0),
61  printHelp(false),
62  printVersion(false),
63  skipUpdate(false),
64  chooseDefault(false),
65  noOpenGL(false),
66  safeMode(false),
67  testMode(false),
68  ipc(false),
69  hideCursor(false),
70  error(false),
71  validate(false)
72  {}
std::string homeDir
Definition: options.h:82
bool validate
Definition: options.h:103
bool printHelp
Definition: options.h:93
bool noOpenGL
Definition: options.h:97
std::string brandingPath
Definition: options.h:79
bool safeMode
Definition: options.h:98
std::string chatLogDir
Definition: options.h:84
std::string test
Definition: options.h:88
std::string screenshotDir
Definition: options.h:87
bool skipUpdate
Definition: options.h:95
bool chooseDefault
Definition: options.h:96
bool hideCursor
Definition: options.h:101
std::string updateHost
Definition: options.h:80
bool ipc
Definition: options.h:100
std::string configDir
Definition: options.h:85
uint16_t serverPort
Definition: options.h:92
std::string localDataDir
Definition: options.h:86
std::string character
Definition: options.h:78
bool error
Definition: options.h:102
std::string dataPath
Definition: options.h:81
bool printVersion
Definition: options.h:94
std::string logFileName
Definition: options.h:83
std::string password
Definition: options.h:77
int renderer
Definition: options.h:91
std::string serverType
Definition: options.h:90
bool testMode
Definition: options.h:99
std::string serverName
Definition: options.h:89
std::string username
Definition: options.h:76

Field Documentation

◆ brandingPath

std::string Options::brandingPath

Definition at line 79 of file options.h.

Referenced by Client::gameInit(), Dirs::initRootDir(), Dirs::mountDataDir(), and parseOptions().

◆ character

std::string Options::character

Definition at line 78 of file options.h.

Referenced by parseOptions().

◆ chatLogDir

std::string Options::chatLogDir

Definition at line 84 of file options.h.

Referenced by parseOptions().

◆ chooseDefault

bool Options::chooseDefault

Definition at line 96 of file options.h.

Referenced by parseOptions().

◆ configDir

std::string Options::configDir

Definition at line 85 of file options.h.

Referenced by Dirs::initConfigDir(), Dirs::initRootDir(), and parseOptions().

◆ dataPath

std::string Options::dataPath

◆ error

bool Options::error

Definition at line 102 of file options.h.

Referenced by parseOptions().

◆ hideCursor

bool Options::hideCursor

Definition at line 101 of file options.h.

Referenced by parseOptions(), and Gui::setUseCustomCursor().

◆ homeDir

std::string Options::homeDir

Definition at line 82 of file options.h.

◆ ipc

bool Options::ipc

Definition at line 100 of file options.h.

Referenced by parseOptions().

◆ localDataDir

std::string Options::localDataDir

Definition at line 86 of file options.h.

Referenced by Dirs::initLocalDataDir(), Dirs::initRootDir(), and parseOptions().

◆ logFileName

std::string Options::logFileName

Definition at line 83 of file options.h.

Referenced by Client::gameInit(), and parseOptions().

◆ noOpenGL

bool Options::noOpenGL

Definition at line 97 of file options.h.

Referenced by GraphicsManager::createRenderers(), and parseOptions().

◆ password

std::string Options::password

Definition at line 77 of file options.h.

Referenced by parseOptions(), and Client::stateConnectServer1().

◆ printHelp

bool Options::printHelp

Definition at line 93 of file options.h.

Referenced by parseOptions().

◆ printVersion

bool Options::printVersion

Definition at line 94 of file options.h.

Referenced by parseOptions().

◆ renderer

int Options::renderer

◆ safeMode

bool Options::safeMode

Definition at line 98 of file options.h.

Referenced by Client::gameInit(), parseOptions(), and ConfigManager::storeSafeParameters().

◆ screenshotDir

std::string Options::screenshotDir

Definition at line 87 of file options.h.

Referenced by Dirs::initRootDir(), Dirs::initScreenshotDir(), and parseOptions().

◆ serverName

std::string Options::serverName

Definition at line 89 of file options.h.

Referenced by parseOptions().

◆ serverPort

uint16_t Options::serverPort

Definition at line 92 of file options.h.

Referenced by parseOptions().

◆ serverType

std::string Options::serverType

Definition at line 90 of file options.h.

Referenced by parseOptions().

◆ skipUpdate

bool Options::skipUpdate

◆ test

std::string Options::test

◆ testMode

bool Options::testMode

Definition at line 99 of file options.h.

Referenced by mainGui(), parseOptions(), and Client::~Client().

◆ updateHost

std::string Options::updateHost

Definition at line 80 of file options.h.

Referenced by parseOptions().

◆ username

std::string Options::username

Definition at line 76 of file options.h.

Referenced by parseOptions(), and Client::stateConnectServer1().

◆ validate

bool Options::validate

Definition at line 103 of file options.h.

Referenced by parseOptions().


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