#include <commandline_options.hpp>
Public Member Functions | |
| commandline_options (int argc, char **argv) | |
Public Attributes | |
| boost::optional< int > | bpp |
| BitsPerPixel specified by --bpp option. | |
| boost::optional< std::string > | campaign |
| Non-empty if --campaign was given on the command line. ID of the campaign we want to start. | |
| boost::optional< int > | campaign_difficulty |
| Non-empty if --campaign-difficulty was given on the command line. Numerical difficulty of the campaign to be played. Dependant on --campaign. | |
| boost::optional< std::string > | campaign_scenario |
| Non-empty if --campaign-scenario was given on the command line. Chooses starting scenario in the campaign to be played. Dependant on --campaign. | |
| bool | clock |
| True if --clock was given on the command line. Enables. | |
| bool | config_path |
| True if --config-path was given on the command line. Prints path to user config directory and exits. | |
| boost::optional< std::string > | config_dir |
| Non-empty if --config-dir was given on the command line. Sets the config dir to the specified one. | |
| boost::optional< std::string > | data_dir |
| Non-empty if --config-dir was given on the command line. Sets the config dir to the specified one. | |
| bool | debug |
| True if --debug was given on the command line. Enables debug mode. | |
| boost::optional< std::string > | editor |
| Non-empty if --editor was given on the command line. Goes directly into editor. If string is longer than 0, it contains path to the file to edit. | |
| bool | fps |
| True if --fps was given on the command line. Shows number of fps. | |
| bool | fullscreen |
| True if --fullscreen was given on the command line. Starts Wesnoth in fullscreen mode. | |
| boost::optional< std::string > | gunzip |
| Non-empty if --gunzip was given on the command line. Uncompresses a .gz file and exits. | |
| boost::optional< std::string > | gzip |
| Non-empty if --gzip was given on the command line. Compresses a file to .gz and exits. | |
| bool | help |
| True if --help was given on the command line. Prints help and exits. | |
| boost::optional< std::string > | language |
| Non-empty if --language was given on the command line. Sets the language for this session. | |
| boost::optional< std::vector < boost::tuple< int, std::string > > > | log |
| Contains parsed arguments of --log-* (e.g. | |
| boost::optional< std::string > | load |
| Non-empty if --load was given on the command line. Savegame specified to load after start. | |
| boost::optional< std::string > | logdomains |
| Non-empty if --logdomains was given on the command line. Prints possible logdomains filtered by given string and exits. | |
| bool | multiplayer |
| True if --multiplayer was given on the command line. Goes directly into multiplayer mode. | |
| boost::optional< std::vector < boost::tuple< unsigned int, std::string > > > | multiplayer_ai_config |
| Non-empty if --ai-config was given on the command line. Vector of pairs (side number, value). Dependant on --multiplayer. | |
| boost::optional< std::vector < boost::tuple< unsigned int, std::string > > > | multiplayer_algorithm |
| Non-empty if --algorithm was given on the command line. Vector of pairs (side number, value). Dependant on --multiplayer. | |
| boost::optional< std::vector < boost::tuple< unsigned int, std::string > > > | multiplayer_controller |
| Non-empty if --controller was given on the command line. Vector of pairs (side number, controller). Dependant on --multiplayer. | |
| boost::optional< std::string > | multiplayer_era |
| Non-empty if --era was given on the command line. Dependant on --multiplayer. | |
| bool | multiplayer_exit_at_end |
| True if --exit-at-and was given on the command line. Dependant on --multiplayer. | |
| boost::optional< std::string > | multiplayer_label |
| Non-empty if --label was given on the command line. Dependant on --multiplayer. | |
| boost::optional< std::vector < boost::tuple< unsigned int, std::string, std::string > > > | multiplayer_parm |
| Non-empty if --parm was given on the command line. Vector of pairs (side number, parm name, parm value). Dependant on --multiplayer. | |
| boost::optional< std::string > | multiplayer_scenario |
| Non-empty if --scenario was given on the command line. Dependant on --multiplayer. | |
| boost::optional< std::vector < boost::tuple< unsigned int, std::string > > > | multiplayer_side |
| Non-empty if --side was given on the command line. Vector of pairs (side number, faction id). Dependant on --multiplayer. | |
| boost::optional< std::string > | multiplayer_turns |
| Non-empty if --turns was given on the command line. Dependant on --multiplayer. | |
| boost::optional< int > | max_fps |
| Max FPS specified by --max-fps option. | |
| bool | nocache |
| True if --nocache was given on the command line. Disables cache usage. | |
| bool | nodelay |
| True if --nodelay was given on the command line. | |
| bool | nogui |
| True if --nogui was given on the command line. Disables GUI. | |
| bool | nomusic |
| True if --nomusic was given on the command line. Disables music. | |
| bool | nosound |
| True if --nosound was given on the command line. Disables sound. | |
| bool | new_storyscreens |
| True if --new-storyscreens was given on the command line. Hidden option to help testing the work-in-progress new storyscreen code. | |
| bool | new_syntax |
| True if --new-syntax was given on the command line. Does magic. | |
| bool | new_widgets |
| True if --new-widgets was given on the command line. Hidden option to enable the new widget toolkit. | |
| bool | path |
| True if --path was given on the command line. Prints the path to data directory and exits. | |
| bool | preprocess |
| True if --preprocess was given on the command line. Starts Wesnoth in preprocessor-only mode. | |
| boost::optional< std::vector < std::string > > | preprocess_defines |
| Defines that were given to the --preprocess option. | |
| boost::optional< std::string > | preprocess_input_macros |
| Non-empty if --preprocess-input-macros was given on the command line. Specifies a file that contains [preproc_define]s to be included before preprocessing. Dependant on --preprocess. | |
| boost::optional< std::string > | preprocess_output_macros |
| Non-empty if --preprocess-output-macros was given on the command line. Outputs all preprocessed macros to the specified file. Dependant on --preprocess. | |
| boost::optional< std::string > | preprocess_path |
| Path to parse that was given to the --preprocess option. | |
| boost::optional< std::string > | preprocess_target |
| Target (output) path that was given to the --preprocess option. | |
| bool | proxy |
| True if --proxy was given on the command line. Enables proxy mode. | |
| boost::optional< std::string > | proxy_address |
| Non-empty if --proxy-address was given on the command line. | |
| boost::optional< std::string > | proxy_password |
| Non-empty if --proxy-password was given on the command line. | |
| boost::optional< std::string > | proxy_port |
| Non-empty if --proxy-port was given on the command line. | |
| boost::optional< std::string > | proxy_user |
| Non-empty if --proxy-user was given on the command line. | |
| boost::optional< boost::tuple < int, int > > | resolution |
| Pair of AxB values specified after --resolution. Changes Wesnoth resolution. | |
| boost::optional< unsigned int > | rng_seed |
| RNG seed specified by --rng-seed option. Initializes RNG with given seed. | |
| boost::optional< std::string > | server |
| Non-empty if --server was given on the command line. Connects Wesnoth to specified server. If no server was specified afterwards, contains an empty string. | |
| boost::optional< std::string > | username |
| Non-empty if --username was given on the command line. Forces Wesnoth to use this network username. | |
| boost::optional< std::string > | password |
| Non-empty if --password was given on the command line. Forces Wesnoth to use this network password. | |
| bool | screenshot |
| True if --screenshot was given on the command line. Starts Wesnoth in screenshot mode. | |
| boost::optional< std::string > | screenshot_map_file |
| Map file to make a screenshot of. First parameter given after --screenshot. | |
| boost::optional< std::string > | screenshot_output_file |
| Output file to put screenshot in. Second parameter given after --screenshot. | |
| bool | smallgui |
| True if --smallgui was given on the command line. Makes Wesnoth use small gui layout. | |
| bool | strict_validation |
| True if --strict-validation was given on the command line. Makes Wesnoth trust validation errors as fatal WML errors and create WML exception, if so. | |
| boost::optional< std::string > | test |
| Non-empty if --test was given on the command line. Goes directly into test mode, into a scenario, if specified. | |
| bool | validcache |
| True if --validcache was given on the command line. Makes Wesnoth assume the cache is valid. | |
| bool | version |
| True if --version was given on the command line. Prints version and exits. | |
| bool | windowed |
| True if --windowed was given on the command line. Starts Wesnoth in windowed mode. | |
| bool | with_replay |
| True if --with-replay was given on the command line. Shows replay of the loaded file. | |
Private Member Functions | |
| void | parse_log_domains_ (const std::string &domains_string, const int severity) |
| void | parse_resolution_ (const std::string &resolution_string) |
| std::vector< boost::tuple < unsigned int, std::string > > | parse_to_uint_string_tuples_ (const std::vector< std::string > &strings, char separator= ':') |
| A helper function splitting vector of strings of format unsigned int:string to vector of tuples (unsigned int,string). | |
| std::vector< boost::tuple < unsigned int, std::string, std::string > > | parse_to_uint_string_string_tuples_ (const std::vector< std::string > &strings, char separator= ':') |
| A helper function splitting vector of strings of format unsigned int:string:string to vector of tuples (unsigned int,string,string). | |
Private Attributes | |
| int | argc_ |
| char ** | argv_ |
| boost::program_options::options_description | all_ |
| boost::program_options::options_description | visible_ |
| boost::program_options::options_description | hidden_ |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const commandline_options &cmdline_opts) |
| To be used for printing help to the commandline. | |
Definition at line 26 of file commandline_options.hpp.
| commandline_options::commandline_options | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 44 of file commandline_options.cpp.
References all_, argc_, argv_, bpp, campaign, campaign_difficulty, campaign_scenario, clock, config_dir, config_path, data_dir, debug, editor, fps, fullscreen, gunzip, gzip, help, hidden_, language, load, logdomains, max_fps, multiplayer, multiplayer_ai_config, multiplayer_algorithm, multiplayer_controller, multiplayer_era, multiplayer_exit_at_end, multiplayer_label, multiplayer_parm, multiplayer_scenario, multiplayer_side, multiplayer_turns, new_storyscreens, new_syntax, new_widgets, nocache, nodelay, nogui, nomusic, nosound, parse_log_domains_(), parse_resolution_(), parse_to_uint_string_string_tuples_(), parse_to_uint_string_tuples_(), password, path, preprocess, preprocess_defines, preprocess_input_macros, preprocess_output_macros, preprocess_path, preprocess_target, proxy, proxy_address, proxy_password, proxy_port, proxy_user, rng_seed, screenshot, screenshot_map_file, screenshot_output_file, smallgui, utils::split(), floating_point_emulation::detail::store(), strict_validation, test, username, validcache, version, visible_, windowed, and with_replay.

| void commandline_options::parse_log_domains_ | ( | const std::string & | domains_string, | |
| const int | severity | |||
| ) | [private] |
Definition at line 382 of file commandline_options.cpp.
References lg::domains, log, and utils::split().
Referenced by commandline_options().


| void commandline_options::parse_resolution_ | ( | const std::string & | resolution_string | ) | [private] |
Definition at line 393 of file commandline_options.cpp.
References lexical_cast(), resolution, and utils::split().
Referenced by commandline_options().


| std::vector< boost::tuple< unsigned int, std::string, std::string > > commandline_options::parse_to_uint_string_string_tuples_ | ( | const std::vector< std::string > & | strings, | |
| char | separator = ':' | |||
| ) | [private] |
A helper function splitting vector of strings of format unsigned int:string:string to vector of tuples (unsigned int,string,string).
Definition at line 422 of file commandline_options.cpp.
References utils::split().
Referenced by commandline_options().


| std::vector< boost::tuple< unsigned int, std::string > > commandline_options::parse_to_uint_string_tuples_ | ( | const std::vector< std::string > & | strings, | |
| char | separator = ':' | |||
| ) | [private] |
A helper function splitting vector of strings of format unsigned int:string to vector of tuples (unsigned int,string).
Definition at line 403 of file commandline_options.cpp.
References utils::split().
Referenced by commandline_options().


| std::ostream& operator<< | ( | std::ostream & | os, | |
| const commandline_options & | cmdline_opts | |||
| ) | [friend] |
To be used for printing help to the commandline.
Definition at line 442 of file commandline_options.cpp.
boost::program_options::options_description commandline_options::all_ [private] |
Definition at line 182 of file commandline_options.hpp.
Referenced by commandline_options().
int commandline_options::argc_ [private] |
Definition at line 180 of file commandline_options.hpp.
Referenced by commandline_options().
char** commandline_options::argv_ [private] |
Definition at line 181 of file commandline_options.hpp.
Referenced by commandline_options(), and operator<<().
| boost::optional<int> commandline_options::bpp |
BitsPerPixel specified by --bpp option.
Definition at line 35 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller_abstract::init_video().
| boost::optional<std::string> commandline_options::campaign |
Non-empty if --campaign was given on the command line. ID of the campaign we want to start.
Definition at line 37 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<int> commandline_options::campaign_difficulty |
Non-empty if --campaign-difficulty was given on the command line. Numerical difficulty of the campaign to be played. Dependant on --campaign.
Definition at line 39 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::campaign_scenario |
Non-empty if --campaign-scenario was given on the command line. Chooses starting scenario in the campaign to be played. Dependant on --campaign.
Definition at line 41 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --clock was given on the command line. Enables.
Definition at line 43 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::config_dir |
Non-empty if --config-dir was given on the command line. Sets the config dir to the specified one.
Definition at line 47 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --config-path was given on the command line. Prints path to user config directory and exits.
Definition at line 45 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::data_dir |
Non-empty if --config-dir was given on the command line. Sets the config dir to the specified one.
Definition at line 49 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --debug was given on the command line. Enables debug mode.
Definition at line 51 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::editor |
Non-empty if --editor was given on the command line. Goes directly into editor. If string is longer than 0, it contains path to the file to edit.
Definition at line 59 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --fps was given on the command line. Shows number of fps.
Definition at line 61 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --fullscreen was given on the command line. Starts Wesnoth in fullscreen mode.
Definition at line 63 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::gunzip |
Non-empty if --gunzip was given on the command line. Uncompresses a .gz file and exits.
Definition at line 65 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::gzip |
Non-empty if --gzip was given on the command line. Compresses a file to .gz and exits.
Definition at line 67 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --help was given on the command line. Prints help and exits.
Definition at line 69 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
boost::program_options::options_description commandline_options::hidden_ [private] |
Definition at line 184 of file commandline_options.hpp.
Referenced by commandline_options().
| boost::optional<std::string> commandline_options::language |
Non-empty if --language was given on the command line. Sets the language for this session.
Definition at line 71 of file commandline_options.hpp.
Referenced by commandline_options(), and game_controller_abstract::init_language().
| boost::optional<std::string> commandline_options::load |
Non-empty if --load was given on the command line. Savegame specified to load after start.
Definition at line 76 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::vector<boost::tuple<int, std::string> > > commandline_options::log |
Contains parsed arguments of --log-* (e.g.
--log-debug). Vector of pairs (severity, log domain).
Definition at line 74 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), parse_log_domains_(), and process_command_args().
| boost::optional<std::string> commandline_options::logdomains |
Non-empty if --logdomains was given on the command line. Prints possible logdomains filtered by given string and exits.
Definition at line 78 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<int> commandline_options::max_fps |
Max FPS specified by --max-fps option.
Definition at line 102 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --multiplayer was given on the command line. Goes directly into multiplayer mode.
Definition at line 80 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), game_controller::init_config(), game_controller_abstract::init_video(), and game_controller::play_multiplayer_mode().
| boost::optional<std::vector<boost::tuple<unsigned int, std::string> > > commandline_options::multiplayer_ai_config |
Non-empty if --ai-config was given on the command line. Vector of pairs (side number, value). Dependant on --multiplayer.
Definition at line 82 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::vector<boost::tuple<unsigned int, std::string> > > commandline_options::multiplayer_algorithm |
Non-empty if --algorithm was given on the command line. Vector of pairs (side number, value). Dependant on --multiplayer.
Definition at line 84 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::vector<boost::tuple<unsigned int, std::string> > > commandline_options::multiplayer_controller |
Non-empty if --controller was given on the command line. Vector of pairs (side number, controller). Dependant on --multiplayer.
Definition at line 86 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::string> commandline_options::multiplayer_era |
Non-empty if --era was given on the command line. Dependant on --multiplayer.
Definition at line 88 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
True if --exit-at-and was given on the command line. Dependant on --multiplayer.
Definition at line 90 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::string> commandline_options::multiplayer_label |
Non-empty if --label was given on the command line. Dependant on --multiplayer.
Definition at line 92 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::vector<boost::tuple<unsigned int, std::string, std::string> > > commandline_options::multiplayer_parm |
Non-empty if --parm was given on the command line. Vector of pairs (side number, parm name, parm value). Dependant on --multiplayer.
Definition at line 94 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::string> commandline_options::multiplayer_scenario |
Non-empty if --scenario was given on the command line. Dependant on --multiplayer.
Definition at line 96 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::vector<boost::tuple<unsigned int, std::string> > > commandline_options::multiplayer_side |
Non-empty if --side was given on the command line. Vector of pairs (side number, faction id). Dependant on --multiplayer.
Definition at line 98 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
| boost::optional<std::string> commandline_options::multiplayer_turns |
Non-empty if --turns was given on the command line. Dependant on --multiplayer.
Definition at line 100 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::play_multiplayer_mode().
True if --new-storyscreens was given on the command line. Hidden option to help testing the work-in-progress new storyscreen code.
Definition at line 114 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --new-syntax was given on the command line. Does magic.
Definition at line 116 of file commandline_options.hpp.
Referenced by commandline_options(), and process_command_args().
True if --new-widgets was given on the command line. Hidden option to enable the new widget toolkit.
Definition at line 118 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --nocache was given on the command line. Disables cache usage.
Definition at line 104 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --nodelay was given on the command line.
Definition at line 106 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --nogui was given on the command line. Disables GUI.
Definition at line 108 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), game_controller::change_language(), commandline_options(), game_controller::game_controller(), game_controller_abstract::init_language(), and game_controller_abstract::init_video().
True if --nomusic was given on the command line. Disables music.
Definition at line 110 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
True if --nosound was given on the command line. Disables sound.
Definition at line 112 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::password |
Non-empty if --password was given on the command line. Forces Wesnoth to use this network password.
Definition at line 152 of file commandline_options.hpp.
Referenced by commandline_options().
True if --path was given on the command line. Prints the path to data directory and exits.
Definition at line 120 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --preprocess was given on the command line. Starts Wesnoth in preprocessor-only mode.
Definition at line 122 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::vector<std::string> > commandline_options::preprocess_defines |
Defines that were given to the --preprocess option.
Definition at line 124 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::preprocess_input_macros |
Non-empty if --preprocess-input-macros was given on the command line. Specifies a file that contains [preproc_define]s to be included before preprocessing. Dependant on --preprocess.
Definition at line 126 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::preprocess_output_macros |
Non-empty if --preprocess-output-macros was given on the command line. Outputs all preprocessed macros to the specified file. Dependant on --preprocess.
Definition at line 128 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::preprocess_path |
Path to parse that was given to the --preprocess option.
Definition at line 130 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::preprocess_target |
Target (output) path that was given to the --preprocess option.
Definition at line 132 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --proxy was given on the command line. Enables proxy mode.
Definition at line 134 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::proxy_address |
Non-empty if --proxy-address was given on the command line.
Definition at line 136 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::proxy_password |
Non-empty if --proxy-password was given on the command line.
Definition at line 138 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::proxy_port |
Non-empty if --proxy-port was given on the command line.
Definition at line 140 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::proxy_user |
Non-empty if --proxy-user was given on the command line.
Definition at line 142 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<boost::tuple<int,int> > commandline_options::resolution |
Pair of AxB values specified after --resolution. Changes Wesnoth resolution.
Definition at line 144 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), game_controller::game_controller(), and parse_resolution_().
| boost::optional<unsigned int> commandline_options::rng_seed |
RNG seed specified by --rng-seed option. Initializes RNG with given seed.
Definition at line 146 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
True if --screenshot was given on the command line. Starts Wesnoth in screenshot mode.
Definition at line 154 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), game_controller::game_controller(), game_controller_abstract::init_video(), game_controller::play_screenshot_mode(), and process_command_args().
| boost::optional<std::string> commandline_options::screenshot_map_file |
Map file to make a screenshot of. First parameter given after --screenshot.
Definition at line 156 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::screenshot_output_file |
Output file to put screenshot in. Second parameter given after --screenshot.
Definition at line 158 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and game_controller::game_controller().
| boost::optional<std::string> commandline_options::server |
Non-empty if --server was given on the command line. Connects Wesnoth to specified server. If no server was specified afterwards, contains an empty string.
Definition at line 148 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and game_controller::game_controller().
True if --smallgui was given on the command line. Makes Wesnoth use small gui layout.
Definition at line 160 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and commandline_options().
True if --strict-validation was given on the command line. Makes Wesnoth trust validation errors as fatal WML errors and create WML exception, if so.
Definition at line 162 of file commandline_options.hpp.
Referenced by commandline_options(), and process_command_args().
| boost::optional<std::string> commandline_options::test |
Non-empty if --test was given on the command line. Goes directly into test mode, into a scenario, if specified.
Definition at line 164 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), game_controller::init_config(), and game_controller::play_test().
| boost::optional<std::string> commandline_options::username |
Non-empty if --username was given on the command line. Forces Wesnoth to use this network username.
Definition at line 150 of file commandline_options.hpp.
Referenced by commandline_options().
True if --validcache was given on the command line. Makes Wesnoth assume the cache is valid.
Definition at line 166 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and commandline_options().
True if --version was given on the command line. Prints version and exits.
Definition at line 168 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), commandline_options(), and process_command_args().
boost::program_options::options_description commandline_options::visible_ [private] |
Definition at line 183 of file commandline_options.hpp.
Referenced by commandline_options(), and operator<<().
True if --windowed was given on the command line. Starts Wesnoth in windowed mode.
Definition at line 170 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and commandline_options().
True if --with-replay was given on the command line. Shows replay of the loaded file.
Definition at line 172 of file commandline_options.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and commandline_options().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:13:16 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |