unit_display.cpp File Reference

#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>

Include dependency graph for unit_display.cpp:

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.


Detailed Description

Definition in file unit_display.cpp.


Define Documentation

#define LOG_DP   LOG_STREAM(info, display)

Definition at line 37 of file unit_display.cpp.


Function Documentation

static void move_unit_between ( const gamemap::location a,
const gamemap::location b,
unit temp_unit 
) [static]

static void teleport_unit_between ( const gamemap::location a,
const gamemap::location b,
unit temp_unit 
) [static]


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs