The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
label.cpp File Reference
#include "global.hpp"
#include "display.hpp"
#include "floating_label.hpp"
#include "game_board.hpp"
#include "game_data.hpp"
#include "map/label.hpp"
#include "resources.hpp"
#include "tooltips.hpp"
#include "formula/string_utils.hpp"
Include dependency graph for label.cpp:

Go to the source code of this file.

Functions

bool is_shrouded (const display &disp, const map_location &loc)
 
bool is_fogged (const display &disp, const map_location &loc)
 Rather simple test for a hex being fogged. More...
 

Function Documentation

bool is_fogged ( const display disp,
const map_location loc 
)
inline

Rather simple test for a hex being fogged.

This only exists because is_shrouded() does. (The code looks nicer if the test for being fogged looks similar to the test for being shrouded.)

Definition at line 38 of file label.cpp.

References display::fogged().

Referenced by terrain_label::hidden().

bool is_shrouded ( const display disp,
const map_location loc 
)
inline

Definition at line 30 of file label.cpp.

References display::shrouded(), map_location::x, and map_location::y.

Referenced by game_display::draw_hex(), and terrain_label::hidden().