Namespaces | Defines | Functions | Variables

game_config.cpp File Reference

#include "global.hpp"
#include "game_config.hpp"
#include "color_range.hpp"
#include "config.hpp"
#include "foreach.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "util.hpp"
#include "version.hpp"
#include "wesconfig.h"
#include "serialization/string_utils.hpp"
Include dependency graph for game_config.cpp:

Go to the source code of this file.

Namespaces

namespace  game_config
 

Game configuration data as global variables.


namespace  game_config::images
namespace  game_config::sounds

Defines

#define DBG_NG   LOG_STREAM(debug, log_engine)
#define ERR_NG   LOG_STREAM(err, log_engine)

Functions

const std::string game_config::test_version ("test")
void game_config::load_config (const config &v)
void game_config::add_color_info (const config &v)
const color_rangegame_config::color_info (const std::string &name)
const std::vector< Uint32 > & game_config::tc_info (const std::string &name)
Uint32 game_config::red_to_green (int val, bool for_text=true)
 Return a color corresponding to the value val red for val=0 to green for val=100, passing by yellow.
Uint32 game_config::blue_to_white (int val, bool for_text)

Variables

static lg::log_domain log_engine ("engine")
int game_config::base_income = 2
int game_config::village_income = 1
int game_config::village_support = 1
int game_config::poison_amount = 8
int game_config::rest_heal_amount = 2
int game_config::recall_cost = 20
int game_config::kill_experience = 8
unsigned game_config::lobby_network_timer = 100
unsigned game_config::lobby_refresh = 4000
const int game_config::gold_carryover_percentage = 80
 Default percentage gold carried over to the next scenario.
const std::string game_config::version = VERSION
const std::string game_config::revision = VERSION
std::string game_config::wesnoth_program_dir
bool game_config::debug = false
bool game_config::editor = false
bool game_config::ignore_replay_errors = false
bool game_config::mp_debug = false
bool game_config::exit_at_end = false
bool game_config::new_syntax = false
bool game_config::no_delay = false
bool game_config::small_gui = false
bool game_config::disable_autosave = false
int game_config::cache_compression_level = 6
int game_config::title_logo_x = 0
int game_config::title_logo_y = 0
int game_config::title_buttons_x = 0
int game_config::title_buttons_y = 0
int game_config::title_buttons_padding = 0
int game_config::title_tip_x = 0
int game_config::title_tip_width = 0
int game_config::title_tip_padding = 0
std::string game_config::title_music
std::string game_config::lobby_music
std::string game_config::default_victory_music
std::string game_config::default_defeat_music
std::string game_config::images::game_title
std::string game_config::images::moved_orb
std::string game_config::images::unmoved_orb
std::string game_config::images::partmoved_orb
std::string game_config::images::enemy_orb
std::string game_config::images::ally_orb
std::string game_config::images::energy
std::string game_config::images::flag
std::string game_config::images::flag_icon
std::string game_config::images::terrain_mask
std::string game_config::images::grid_top
std::string game_config::images::grid_bottom
std::string game_config::images::mouseover
std::string game_config::images::selected
std::string game_config::images::editor_brush
std::string game_config::images::unreachable
std::string game_config::images::linger
std::string game_config::images::observer
std::string game_config::images::tod_bright
std::string game_config::images::tod_dark
std::string game_config::images::checked_menu = "buttons/checkbox-pressed.png"
std::string game_config::images::unchecked_menu = "buttons/checkbox.png"
std::string game_config::images::wml_menu = "buttons/WML-custom.png"
std::string game_config::images::level
std::string game_config::images::ellipsis
std::string game_config::images::missing
std::string game_config::shroud_prefix
std::string game_config::fog_prefix
std::string game_config::flag_rgb
std::vector< Uint32 > game_config::red_green_scale
std::vector< Uint32 > game_config::red_green_scale_text
std::vector< Uint32 > game_config::blue_white_scale
std::vector< Uint32 > game_config::blue_white_scale_text
double game_config::hp_bar_scaling = 0.666
double game_config::xp_bar_scaling = 0.5
double game_config::hex_brightening = 1.25
std::vector< std::string > game_config::foot_speed_prefix
std::string game_config::foot_teleport_enter
std::string game_config::foot_teleport_exit
std::map< std::string,
color_range
game_config::team_rgb_range
std::map< std::string, t_stringgame_config::team_rgb_name
std::map< std::string,
std::vector< Uint32 > > 
game_config::team_rgb_colors
const version_info game_config::wesnoth_version (VERSION)
const version_info game_config::min_savegame_version (MIN_SAVEGAME_VERSION)
const std::string game_config::observer_team_name = "observer"
 observer team name used for observer team chat
const size_t game_config::max_loop = 65536
 The maximum number of hexes on a map and items in an array and also used as maximum in wml loops.
const std::string game_config::sounds::turn_bell = "bell.wav"
const std::string game_config::sounds::timer_bell = "timer.wav"
const std::string game_config::sounds::receive_message = "chat-1.ogg,chat-2.ogg,chat-3.ogg"
const std::string game_config::sounds::receive_message_highlight = "chat-highlight.ogg"
const std::string game_config::sounds::receive_message_friend = "chat-friend.ogg"
const std::string game_config::sounds::receive_message_server = "receive.wav"
const std::string game_config::sounds::user_arrive = "arrive.wav"
const std::string game_config::sounds::user_leave = "leave.wav"
const std::string game_config::sounds::game_user_arrive = "join.wav"
const std::string game_config::sounds::game_user_leave = "leave.wav"
const std::string game_config::sounds::button_press = "button.wav"
const std::string game_config::sounds::checkbox_release = "checkbox.wav"
const std::string game_config::sounds::slider_adjust = "slider.wav"
const std::string game_config::sounds::menu_expand = "expand.wav"
const std::string game_config::sounds::menu_contract = "contract.wav"
const std::string game_config::sounds::menu_select = "select.wav"
std::string game_config::path = ""
std::string game_config::default_preferences_path = ""
std::string game_config::preferences_dir = ""
std::vector< server_info > game_config::server_list

Define Documentation

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 33 of file game_config.cpp.

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 34 of file game_config.cpp.


Variable Documentation

lg::log_domain log_engine("engine") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:04:21 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs