#include "global.hpp"
#include "actions.hpp"
#include "game_display.hpp"
#include "game_preferences.hpp"
#include "events.hpp"
#include "game_config.hpp"
#include "gamestatus.hpp"
#include "halo.hpp"
#include "image.hpp"
#include "log.hpp"
#include "scoped_resource.hpp"
#include "sound.hpp"
#include "unit_display.hpp"
#include "util.hpp"
#include "mouse_events.hpp"
#include <cassert>
#include <climits>
Go to the source code of this file.
Namespaces | |
namespace | unit_display |
Defines | |
#define | LOG_DP LOG_STREAM(info, display) |
Functions | |
static void | teleport_unit_between (const gamemap::location &a, const gamemap::location &b, unit &temp_unit) |
static void | move_unit_between (const gamemap::location &a, const gamemap::location &b, unit &temp_unit) |
bool | unit_display::unit_visible_on_path (const std::vector< gamemap::location > &path, const unit &u, const unit_map &units, const std::vector< team > &teams) |
void | unit_display::move_unit (const std::vector< gamemap::location > &path, unit &u, const std::vector< team > &teams) |
Display a unit moving along a given path. | |
void | unit_display::unit_die (const gamemap::location &loc, unit &u, const attack_type *attack=NULL, const attack_type *secondary_attack=NULL, unit *winner=NULL) |
Show a unit fading out. | |
void | unit_display::unit_attack (const gamemap::location &a, const gamemap::location &b, int damage, const attack_type &attack, const attack_type *secondary_attack, int swing, std::string hit_text, bool drain, std::string att_text) |
Make the unit on tile 'a' attack the unit on tile 'b'. | |
void | unit_display::unit_recruited (gamemap::location &loc) |
void | unit_display::unit_healing (unit &healed, gamemap::location &healed_loc, std::vector< unit_map::iterator > healers, int healing) |
Set healer_loc to an invalid location if there are no healers. |
Definition in file unit_display.cpp.
#define LOG_DP LOG_STREAM(info, display) |
Definition at line 37 of file unit_display.cpp.
static void move_unit_between | ( | const gamemap::location & | a, | |
const gamemap::location & | b, | |||
unit & | temp_unit | |||
) | [static] |
Definition at line 67 of file unit_display.cpp.
References preferences::disp, display::fogged(), get_adjacent_tiles(), unit_animator::get_animation_time_potential(), gamemap::location::get_relative_dir(), game_display::get_singleton(), game_display::invalidate(), display::ONSCREEN, unit_animator::pause_animation(), game_display::place_temporary_unit(), unit_animator::replace_anim_if_invalid(), unit_animator::restart_animation(), display::scroll_to_tiles(), unit::set_facing(), unit_animator::start_animations(), CVideo::update_locked(), display::video(), and unit_animator::wait_until().
Referenced by unit_display::move_unit().
static void teleport_unit_between | ( | const gamemap::location & | a, | |
const gamemap::location & | b, | |||
unit & | temp_unit | |||
) | [static] |
Definition at line 39 of file unit_display.cpp.
References unit_animator::add_animation(), preferences::disp, display::fogged(), game_display::get_singleton(), display::ONSCREEN, game_display::place_temporary_unit(), events::pump(), display::scroll_to_tiles(), unit::set_standing(), unit_animator::start_animations(), display::update_display(), CVideo::update_locked(), display::video(), and unit_animator::wait_for_end().
Referenced by unit_display::move_unit().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |