The Battle for Wesnoth  1.15.0-dev
Macros | Enumerations | Functions | Variables
heal.cpp File Reference

Healing (at start of side turn). More...

#include "actions/heal.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "units/abilities.hpp"
#include "units/udisplay.hpp"
#include "units/map.hpp"
#include <list>
#include <vector>
Include dependency graph for heal.cpp:

Go to the source code of this file.


#define DBG_NG   LOG_STREAM(debug, log_engine)




void calculate_healing (int side, bool update_display)
 Calculates healing for all units for the given side. More...


static lg::log_domain log_engine ("engine")

Detailed Description

Healing (at start of side turn).

Definition in file heal.cpp.

Macro Definition Documentation


#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 38 of file heal.cpp.

Referenced by calculate_healing().

Enumeration Type Documentation


Definition at line 60 of file heal.cpp.

Function Documentation

◆ calculate_healing()

void calculate_healing ( int  side,
bool  update_display 

Calculates healing for all units for the given side.

Should be called at the beginning of a side's turn.

Definition at line 292 of file heal.cpp.

References resources::controller, DBG_NG, resources::gameboard, display::get_singleton(), game_config::poison_amount, game_config::rest_heal_amount, unit::STATE_POISONED, game_board::teams(), and display::viewing_team().

Referenced by play_controller::do_init_side().

Variable Documentation

◆ log_engine

lg::log_domain log_engine("engine")