game_config.cpp File Reference

#include "global.hpp"
#include "config.hpp"
#include "log.hpp"
#include "gettext.hpp"
#include "game_config.hpp"
#include "util.hpp"
#include "serialization/string_utils.hpp"
#include "wesconfig.h"
#include <cstdlib>
#include <string>
#include <sstream>
#include <ostream>

Include dependency graph for game_config.cpp:

Go to the source code of this file.

Namespaces

namespace  game_config
namespace  game_config::sounds

Defines

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

Functions

struct game_version game_config::wesnoth_version (VERSION)
struct game_version game_config::min_savegame_version (MIN_SAVEGAME_VERSION)
struct game_version game_config::test_version ("test")
void game_config::load_config (const config *cfg)
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)
bool game_config::operator< (const struct game_version &a, const struct game_version &b)
bool game_config::operator<= (const struct game_version &a, const struct game_version &b)
bool game_config::operator> (const struct game_version &a, const struct game_version &b)
bool game_config::operator>= (const struct game_version &a, const struct game_version &b)
bool game_config::operator== (const struct game_version &a, const struct game_version &b)
bool game_config::operator!= (const struct game_version &a, const struct game_version &b)

Variables

int game_config::base_income = 2
int game_config::village_income = 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_refresh = 2000
const int game_config::gold_carryover_percentage = 80
 Default percentage gold carried over to the next scenario.
const bool game_config::gold_carryover_add = false
 If true the carried over gold is added to the start gold in the next scenario, otherwise it uses the maximum of starting gold and carryover gold.
const std::string game_config::version = VERSION
const std::string game_config::revision = VERSION
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::no_delay = false
bool game_config::disable_autosave = false
std::string game_config::game_icon = "wesnoth-icon.png"
std::string game_config::game_title
std::string game_config::game_logo
std::string game_config::title_music
std::string game_config::lobby_music
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::terrain_mask_image = "terrain/alphamask.png"
std::string game_config::grid_image = "terrain/grid.png"
std::string game_config::unreachable_image = "terrain/darken.png"
 overlay image for unreachable tiles
std::string game_config::linger_image = "terrain/darken-linger.png"
 overlay image for tiles in linger mode
std::string game_config::energy_image = "misc/bar-energy.png"
std::string game_config::moved_ball_image = "misc/ball-moved.png"
std::string game_config::unmoved_ball_image = "misc/ball-unmoved.png"
std::string game_config::partmoved_ball_image = "misc/ball-partmoved.png"
std::string game_config::enemy_ball_image = "misc/ball-enemy.png"
std::string game_config::ally_ball_image = "misc/ball-ally.png"
std::string game_config::flag_image = "flags/flag-1.png:150,flags/flag-2.png:150,flags/flag-3.png:150,flags/flag-4.png:150"
std::string game_config::flag_icon_image = "flags/flag_icon.png"
std::string game_config::flag_rgb = "flag_green"
std::vector< Uint32 > game_config::defense_color_scale
double game_config::hp_bar_scaling = 0.666
double game_config::xp_bar_scaling = 0.5
std::string game_config::cross_image = "misc/cross.png"
std::vector< std::string > game_config::foot_speed_prefix
std::string game_config::foot_teleport_enter = "footsteps/teleport-in.png"
std::string game_config::foot_teleport_exit = "footsteps/teleport-out.png"
std::string game_config::observer_image = "misc/eye.png"
std::string game_config::tod_bright_image = "misc/tod-bright.png"
std::string game_config::unchecked_menu_image = "buttons/checkbox.png"
std::string game_config::checked_menu_image = "buttons/checkbox-pressed.png"
std::string game_config::wml_menu_image = "buttons/WML-custom.png"
std::string game_config::level_image
std::string game_config::ellipsis_image
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 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::vector< server_info > game_config::server_list


Define Documentation

#define DBG_NG   LOG_STREAM(debug, engine)

Definition at line 33 of file game_config.cpp.

#define ERR_NG   LOG_STREAM(err, engine)

Definition at line 34 of file game_config.cpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs