The Battle for Wesnoth  1.17.23+dev
Namespaces | Macros | Functions | Variables
minimap.cpp File Reference
#include "minimap.hpp"
#include "color.hpp"
#include "display.hpp"
#include "draw.hpp"
#include "game_board.hpp"
#include "gettext.hpp"
#include "picture.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "preferences/general.hpp"
#include "resources.hpp"
#include "sdl/surface.hpp"
#include "sdl/utils.hpp"
#include "team.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
Include dependency graph for minimap.cpp:

Go to the source code of this file.

Namespaces

 image
 Functions to load and save images from/to disk.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define DBG_DP   LOG_STREAM(debug, log_display)
 
#define WRN_DP   LOG_STREAM(warn, log_display)
 

Functions

surface image::getMinimap (int w, int h, const gamemap &map_, const team *vm=nullptr, const std::map< map_location, unsigned int > *reach_map=nullptr, bool ignore_terrain_disabled=false)
 function to create the minimap for a given map the surface returned must be freed by the user More...
 
void image::render_minimap (unsigned dst_w, unsigned dst_h, const gamemap &map, const team *vw=nullptr, const unit_map *units=nullptr, const std::map< map_location, unsigned int > *reach_map=nullptr, bool ignore_terrain_disabled=false)
 Renders the minimap to the screen. More...
 

Variables

static lg::log_domain log_display ("display")
 

Macro Definition Documentation

◆ DBG_DP

#define DBG_DP   LOG_STREAM(debug, log_display)

Definition at line 37 of file minimap.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file minimap.cpp.

◆ WRN_DP

#define WRN_DP   LOG_STREAM(warn, log_display)

Definition at line 38 of file minimap.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display") ( "display"  )
static