The Battle for Wesnoth  1.15.0-dev
Functions
heal.hpp File Reference

Various functions that implement healing of units (when a side turn starts). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Detailed Description

Various functions that implement healing of units (when a side turn starts).

Definition in file heal.hpp.

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().