The Battle for Wesnoth  1.19.7+dev
Macros | Functions | Variables
game_display.cpp File Reference

During a game, show map & info-panels at top+right. More...

#include "game_display.hpp"
#include <utility>
#include "cursor.hpp"
#include "display_chat_manager.hpp"
#include "fake_unit_manager.hpp"
#include "floating_label.hpp"
#include "game_board.hpp"
#include "preferences/preferences.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "font/standard_colors.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "tod_manager.hpp"
#include "color.hpp"
#include "synced_context.hpp"
#include "units/unit.hpp"
#include "units/drawer.hpp"
#include "utils/general.hpp"
#include "whiteboard/manager.hpp"
#include "overlay.hpp"
#include "draw.hpp"
Include dependency graph for game_display.cpp:

Go to the source code of this file.

Macros

#define ERR_DP   LOG_STREAM(err, log_display)
 
#define LOG_DP   LOG_STREAM(info, log_display)
 
#define DBG_DP   LOG_STREAM(debug, log_display)
 
#define ERR_NG   LOG_STREAM(err, log_engine)
 

Functions

std::vector< texturefootsteps_images (const map_location &loc, const pathfind::marked_route &route_, const display_context *dc_)
 Function to return 2 half-hex footsteps images for the given location. More...
 

Variables

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

Detailed Description

During a game, show map & info-panels at top+right.

Definition in file game_display.cpp.

Macro Definition Documentation

◆ DBG_DP

#define DBG_DP   LOG_STREAM(debug, log_display)

Definition at line 50 of file game_display.cpp.

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 48 of file game_display.cpp.

◆ ERR_NG

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 53 of file game_display.cpp.

◆ LOG_DP

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 49 of file game_display.cpp.

Function Documentation

◆ footsteps_images()

std::vector< texture > footsteps_images ( const map_location loc,
const pathfind::marked_route route_,
const display_context dc_ 
)

Function to return 2 half-hex footsteps images for the given location.

Only loc is on the current route set by set_route.

This function is only used internally by game_display so I have moved it out of the header into the compilaton unit.

Definition at line 457 of file game_display.cpp.

References unit_map::end(), utils::find(), unit_map::find(), game_config::foot_speed_prefix, game_config::foot_teleport_enter, game_config::foot_teleport_exit, gamemap_base::get_terrain(), image::get_texture(), h, image::HEXED, i, loc, display_context::map(), route_, utf8::size(), map_location::south_east, tiles_adjacent(), and display_context::units().

Referenced by game_display::draw_hex().

Variable Documentation

◆ log_display

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

◆ log_engine

lg::log_domain log_engine("engine") ( "engine"  )
static