unit_display Namespace Reference

Contains a number of free functions which display units. More...


Functions

bool unit_visible_on_path (const std::vector< gamemap::location > &path, const unit &u, const unit_map &units, const std::vector< team > &teams)
void 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_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_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_recruited (gamemap::location &loc)
void 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

Contains a number of free functions which display units.

performing various on-screen actions - moving, attacking, and dying.


Function Documentation

void unit_display::move_unit ( const std::vector< gamemap::location > &  path,
unit u,
const std::vector< team > &  teams 
)

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 
)

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 
)

void unit_display::unit_healing ( unit healed,
gamemap::location healed_loc,
std::vector< unit_map::iterator healers,
int  healing 
)

void unit_display::unit_recruited ( gamemap::location loc  ) 

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 
)


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