Healing (at start of side turn). More...
#include "heal.hpp"
#include "game_board.hpp"
#include "game_display.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>
Go to the source code of this file.
Macros | |
#define | DBG_NG LOG_STREAM(debug, log_engine) |
Enumerations | |
enum | POISON_STATUS |
Functions | |
void | calculate_healing (int side, bool update_display) |
Calculates healing for all units for the given side. More... | |
Variables | |
static lg::log_domain | log_engine ("engine") |
Healing (at start of side turn).
Definition in file heal.cpp.
#define DBG_NG LOG_STREAM(debug, log_engine) |
Definition at line 39 of file heal.cpp.
Referenced by calculate_healing().
enum POISON_STATUS |
Calculates healing for all units for the given side.
Should be called at the beginning of a side's turn.
Definition at line 294 of file heal.cpp.
References resources::controller, DBG_NG, resources::gameboard, unit::get_location(), unit::get_state(), unit::hitpoints(), unit::incapacitated(), unit::is_healthy(), unit::is_visible_to_team(), game_board::map(), unit::max_hitpoints(), game_config::poison_amount, game_config::rest_heal_amount, unit::resting(), resources::screen, unit::set_resting(), unit::side(), unit::STATE_POISONED, resources::units, and display::viewing_team().
Referenced by play_controller::do_init_side().
|
static |