#include "global.hpp"
#include "SDL.h"
#include "SDL_mixer.h"
#include "about.hpp"
#include "config.hpp"
#include "construct_dialog.hpp"
#include "cursor.hpp"
#include "dialogs.hpp"
#include "game_display.hpp"
#include "filesystem.hpp"
#include "font.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gamestatus.hpp"
#include "gettext.hpp"
#include "gui/dialogs/addon_connect.hpp"
#include "gui/dialogs/language_selection.hpp"
#include "gui/dialogs/mp_method_selection.hpp"
#include "gui/widgets/button.hpp"
#include "help.hpp"
#include "hotkeys.hpp"
#include "intro.hpp"
#include "language.hpp"
#include "loadscreen.hpp"
#include "log.hpp"
#include "widgets/menu.hpp"
#include "marked-up_text.hpp"
#include "multiplayer.hpp"
#include "network.hpp"
#include "playcampaign.hpp"
#include "preferences_display.hpp"
#include "publish_campaign.hpp"
#include "replay.hpp"
#include "sound.hpp"
#include "statistics.hpp"
#include "thread.hpp"
#include "titlescreen.hpp"
#include "util.hpp"
#include "upload_log.hpp"
#include "wml_exception.hpp"
#include "wml_separators.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/binary_wml.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "serialization/string_utils.hpp"
#include "sha1.hpp"
#include "wesconfig.h"
#include <clocale>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <boost/iostreams/filter/gzip.hpp>
Go to the source code of this file.
Defines | |
#define | ERR_CONFIG LOG_STREAM(err, config) |
#define | WRN_CONFIG LOG_STREAM(warn, config) |
#define | DBG_CONFIG LOG_STREAM(debug, config) |
#define | LOG_CONFIG LOG_STREAM(info, config) |
#define | LOG_GENERAL LOG_STREAM(info, general) |
#define | DBG_GENERAL LOG_STREAM(debug, general) |
#define | ERR_NET LOG_STREAM(err, network) |
#define | LOG_NET LOG_STREAM(info, network) |
#define | ERR_FS LOG_STREAM(err, filesystem) |
Functions | |
static bool | less_campaigns_rank (const config *a, const config *b) |
static std::string | format_file_size (const std::string &size_str) |
static void | safe_exit (int res) |
static void | gzip_codec (const std::string &input_file, const std::string &output_file, bool encode) |
static void | gzip_encode (const std::string &input_file, const std::string &output_file) |
static void | gzip_decode (const std::string &input_file, const std::string &output_file) |
static int | play_game (int argc, char **argv) |
Process commandline-arguments. | |
int | main (int argc, char **argv) |
Variables | |
static bool | new_widgets = false |
#define ERR_CONFIG LOG_STREAM(err, config) |
Definition at line 85 of file game.cpp.
Referenced by unit_movement_type::defense_modifier(), unit::defense_modifier(), draw_background(), hotkey::hotkey_item::load_from_config(), server::read_config(), and read_tips_of_day().
#define LOG_CONFIG LOG_STREAM(info, config) |
#define LOG_GENERAL LOG_STREAM(info, general) |
#define WRN_CONFIG LOG_STREAM(warn, config) |
static std::string format_file_size | ( | const std::string & | size_str | ) | [static] |
static void gzip_codec | ( | const std::string & | input_file, | |
const std::string & | output_file, | |||
bool | encode | |||
) | [static] |
Definition at line 2136 of file game.cpp.
References safe_exit(), and io_exception::what().
Referenced by gzip_decode(), and gzip_encode().
static void gzip_decode | ( | const std::string & | input_file, | |
const std::string & | output_file | |||
) | [static] |
static void gzip_encode | ( | const std::string & | input_file, | |
const std::string & | output_file | |||
) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 2553 of file game.cpp.
References twml_exception::dev_message, config::error::message, play_game(), game_config::revision, safe_exit(), and twml_exception::user_message.
static int play_game | ( | int | argc, | |
char ** | argv | |||
) | [static] |
Process commandline-arguments.
Definition at line 2169 of file game.cpp.
References _, replay::at_end(), gui::BEG_FOR_UPLOAD, gui::CHANGE_LANGUAGE, config::clear(), replay::clear(), loadscreen::clear_screen(), detect_format_and_read(), gui::EDIT_PREFERENCES, statistics::fresh_stats(), game::game(), gui::GET_ADDONS, get_intl_dir(), loadscreen::global_loadscreen, gzip_decode(), gzip_encode(), loadscreen::increment_progress(), python_ai::invoke(), is_gzip_file(), istream_file(), lg::list_logdomains(), font::load_font_config(), gui::LOAD_GAME, LOG_CONFIG, LOG_GENERAL, config::error::message, gui::MULTIPLAYER, gui::NEW_CAMPAIGN, gui::NOTHING, ostream_file(), PACKAGE, sound::play_music_repeatedly(), gui::QUIT_GAME, recorder, gui::REDRAW_BACKGROUND, cursor::set(), lg::set_log_domain_severity(), loadscreen::set_progress(), image::set_team_colors(), about::show_about(), gui::SHOW_ABOUT, gui::show_error_message(), help::show_help(), gui::SHOW_HELP, gui::show_title(), game_config::title_music, gui::TUTORIAL, game_config::version, cursor::WAIT, io_exception::what(), and write_possibly_compressed().
Referenced by enter_connect_mode(), enter_wait_mode(), and main().
static void safe_exit | ( | int | res | ) | [static] |
Definition at line 2126 of file game.cpp.
References LOG_GENERAL.
Referenced by gzip_codec(), and main().
const font::manager font_manager_ |
int force_bpp_ |
bool force_valid_cache_ |
const image::manager image_manager_ |
bool jump_to_campaign_ |
bool jump_to_multiplayer_ |
std::string loaded_game_ |
bool multiplayer_mode_ |
std::string multiplayer_server_ |
bool new_widgets = false [static] |
bool test_mode_ |
std::string test_scenario_ |
bool use_caching_ |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |