Defines | Functions | Variables

terrain.cpp File Reference

#include "global.hpp"
#include "foreach.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "terrain.hpp"
#include "util.hpp"
#include <set>
Include dependency graph for terrain.cpp:

Go to the source code of this file.

Defines

#define ERR_G   LOG_STREAM(err, lg::general)
#define WRN_G   LOG_STREAM(warn, lg::general)
#define LOG_G   LOG_STREAM(info, lg::general)
#define DBG_G   LOG_STREAM(debug, lg::general)

Functions

void create_terrain_maps (const config::const_child_itors &cfgs, t_translation::t_list &terrain_list, std::map< t_translation::t_terrain, terrain_type > &letter_to_terrain)
void merge_alias_lists (t_translation::t_list &first, const t_translation::t_list &second)

Variables

static lg::log_domain log_config ("config")

Define Documentation

#define DBG_G   LOG_STREAM(debug, lg::general)

Definition at line 31 of file terrain.cpp.

Referenced by create_terrain_maps().

#define ERR_G   LOG_STREAM(err, lg::general)

Definition at line 28 of file terrain.cpp.

Referenced by create_terrain_maps().

#define LOG_G   LOG_STREAM(info, lg::general)

Definition at line 30 of file terrain.cpp.

Referenced by create_terrain_maps().

#define WRN_G   LOG_STREAM(warn, lg::general)

Definition at line 29 of file terrain.cpp.


Function Documentation

void create_terrain_maps ( const config::const_child_itors cfgs,
t_translation::t_list terrain_list,
std::map< t_translation::t_terrain, terrain_type > &  letter_to_terrain 
)

Definition at line 282 of file terrain.cpp.

References DBG_G, terrain_type::editor_group(), ERR_G, terrain_type::id(), utils::join(), LOG_G, terrain_type::name(), terrain_type::number(), terrain_type::set_editor_group(), utils::split(), and gui2::terrain.

Referenced by gamemap::gamemap().

Here is the call graph for this function:

Here is the caller graph for this function:

void merge_alias_lists ( t_translation::t_list first,
const t_translation::t_list second 
)

Definition at line 333 of file terrain.cpp.

References t_translation::BASE, t_translation::MINUS, and t_translation::PLUS.

Referenced by terrain_type::terrain_type().

Here is the caller graph for this function:


Variable Documentation

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

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