The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Typedefs | Functions
animation.cpp File Reference
#include "global.hpp"
#include "units/animation.hpp"
#include "filter_context.hpp"
#include "game_display.hpp"
#include "halo.hpp"
#include "map/map.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "units/unit.hpp"
#include "units/animation_component.hpp"
#include "units/filter.hpp"
#include "variable.hpp"
#include <algorithm>
Include dependency graph for animation.cpp:

Go to the source code of this file.

Classes

struct  tag_name_manager
 
struct  animation_branch
 
struct  animation_cursor
 

Typedefs

typedef std::list
< animation_branch
animation_branches
 

Functions

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::tdrawing_layer layer=display::LAYER_UNIT_DEFAULT, bool offscreen=true)
 
std::ostream & operator<< (std::ostream &outstream, const unit_animation &u_animation)
 

Typedef Documentation

Definition at line 89 of file animation.cpp.

Function Documentation

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

Definition at line 259 of file animation.cpp.

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

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

static void prepare_single_animation ( const config anim_cfg,
animation_branches expanded_anims 
)
static