The Battle for Wesnoth  1.15.1+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 "gettext.hpp"
#include "wesconfig.h"
#include "cursor.hpp"
#include "display_chat_manager.hpp"
#include "fake_unit_manager.hpp"
#include "fake_unit_ptr.hpp"
#include "floating_label.hpp"
#include "game_board.hpp"
#include "preferences/game.hpp"
#include "halo.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "map/label.hpp"
#include "font/standard_colors.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "tod_manager.hpp"
#include "color.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
#include "units/drawer.hpp"
#include "whiteboard/manager.hpp"
#include "overlay.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 ERR_NG   LOG_STREAM(err, log_engine)
 

Functions

std::vector< surfacefootsteps_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

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 49 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 50 of file game_display.cpp.

Function Documentation

◆ footsteps_images()

std::vector< surface > 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 483 of file game_display.cpp.

References unit_map::end(), gui2::event::find(), unit_map::find(), game_config::foot_speed_prefix, game_config::foot_teleport_enter, game_config::foot_teleport_exit, image::get_image(), gamemap::get_terrain(), h, i, display_context::map(), image::SCALED_TO_HEX, map_location::SOUTH_EAST, pathfind::marked_route::steps, tiles_adjacent(), and display_context::units().

Referenced by game_display::draw_hex().

Variable Documentation

◆ log_display

lg::log_domain log_display("display")
static

◆ log_engine

lg::log_domain log_engine("engine")
static