#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>
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 std::list<animation_branch> animation_branches |
Definition at line 89 of file animation.cpp.
|
static |
Definition at line 599 of file animation.cpp.
References config::attribute_value::empty(), display::LAYER_UNIT_FIRST, and prepare_animation().
Referenced by unit_animation::add_anims().
std::ostream& operator<< | ( | std::ostream & | outstream, |
const unit_animation & | u_animation | ||
) |
Definition at line 1098 of file animation.cpp.
References config::debug(), unit_frame::debug_strings(), unit_animation::directions_, unit_animation::event_, unit_animation::frequency_, unit_animation::get_begin_time(), animated< T, T_void_value >::get_frame(), animated< T, T_void_value >::get_frames_count(), unit_animation::HIT, unit_animation::hits_, i, unit_animation::INVALID, unit_animation::KILL, unit_animation::MISS, map_location::NORTH, map_location::NORTH_EAST, map_location::NORTH_WEST, pos, unit_animation::primary_attack_filter_, unit_animation::secondary_attack_filter_, unit_animation::secondary_unit_filter_, map_location::SOUTH, map_location::SOUTH_EAST, map_location::SOUTH_WEST, unit_animation::sub_anims_, gui2::terrain, unit_animation::terrain_types_, unit_animation::unit_anim_, and unit_animation::unit_filter_.
|
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 |
Definition at line 200 of file animation.cpp.
References animation_cursor::branches, animation_branch::children, animation_cursor::itors, and animation_cursor::parent.
Referenced by prepare_animation().