The Battle for Wesnoth  1.19.0+dev
Classes | Typedefs | Functions
animation.cpp File Reference
#include "units/animation.hpp"
#include "display.hpp"
#include "map/map.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "color.hpp"
#include "units/unit.hpp"
#include "units/animation_component.hpp"
#include "units/filter.hpp"
#include "variable.hpp"
#include "random.hpp"
#include <algorithm>
Include dependency graph for animation.cpp:

Go to the source code of this file.


struct  animation_branch
struct  animation_cursor


typedef std::list< animation_branchanimation_branches


static std::string get_heal_sound (const config &cfg)
static void prepare_single_animation (const config &anim_cfg, animation_branches &expanded_anims)
static animation_branches prepare_animation (const config &cfg, const std::string &animation_tag)
static void add_simple_anim (std::vector< unit_animation > &animations, const config &cfg, char const *tag_name, char const *apply_to, display::drawing_layer layer=display::LAYER_UNIT_DEFAULT, bool offscreen=true)
std::ostream & operator<< (std::ostream &outstream, const unit_animation &u_animation)

Typedef Documentation

◆ animation_branches

Definition at line 57 of file animation.cpp.

Function Documentation

◆ add_simple_anim()

static void add_simple_anim ( std::vector< unit_animation > &  animations,
const config cfg,
char const *  tag_name,
char const *  apply_to,
display::drawing_layer  layer = display::LAYER_UNIT_DEFAULT,
bool  offscreen = true 

◆ get_heal_sound()

static std::string get_heal_sound ( const config cfg)

Definition at line 31 of file animation.cpp.

References config::empty().

Referenced by unit_animation::add_anims(), and unit_animation::fill_initial_animations().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  outstream,
const unit_animation u_animation 

Definition at line 1157 of file animation.cpp.

◆ prepare_animation()

static animation_branches prepare_animation ( const config cfg,
const std::string &  animation_tag 

Definition at line 243 of file animation.cpp.

References config::child_range(), and prepare_single_animation().

Referenced by unit_animation::add_anims(), and add_simple_anim().

◆ prepare_single_animation()

static void prepare_single_animation ( const config anim_cfg,
animation_branches expanded_anims