The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
game_display.cpp File Reference

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

#include "global.hpp"
#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 "game_preferences.hpp"
#include "halo.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "map/label.hpp"
#include "marked-up_text.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "tod_manager.hpp"
#include "sound.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
#include "units/drawer.hpp"
#include "whiteboard/manager.hpp"
#include <boost/make_shared.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

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 51 of file game_display.cpp.

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 55 of file game_display.cpp.

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 52 of file game_display.cpp.

Function Documentation

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 596 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(), surface::null(), 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

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