22#ifndef QDENGINE_QDCORE_QD_ANIMATION_SET_H
23#define QDENGINE_QDCORE_QD_ANIMATION_SET_H
25#include "qdengine/parser/xml_fwd.h"
26#include "qdengine/qdcore/qd_named_object.h"
27#include "qdengine/qdcore/qd_animation.h"
28#include "qdengine/qdcore/qd_animation_info.h"
43 return QD_NAMED_OBJECT_ANIMATION_SET;
47 return _animations.
size();
74 return &_turn_animation;
76 void set_turn_animation(
const char *animation_name) {
77 _turn_animation.set_animation_name(animation_name);
80 float walk_sound_frequency(
int direction_index)
const;
81 float walk_sound_frequency(
float direction_angle)
const;
82 void set_walk_sound_frequency(
int direction_index,
float freq);
84 bool load_animations(
const qdNamedObject *res_owner);
85 bool free_animations(
const qdNamedObject *res_owner);
91 bool scale_animations(
float coeff_x,
float coeff_y);
96 float start_angle()
const {
99 void set_start_angle(
float v) {
111 qdAnimationInfoVector _animations;
112 qdAnimationInfoVector _static_animations;
113 qdAnimationInfoVector _start_animations;
114 qdAnimationInfoVector _stop_animations;
117 qdAnimationInfo _turn_animation;
size_type size() const
Definition: array.h:316
Анимация.
Definition: qd_animation.h:57
Информация об анимации.
Definition: qd_animation_info.h:34
Definition: qd_animation_set.h:34
int named_object_type() const
Возвращает тип объекта.
Definition: qd_animation_set.h:42
float get_index_angle(int direction_index) const
выдает угол походки и остановки, соответствующих индексу
int get_angle_index(float direction_angle) const
выдает индекс походки и остановки, соответствующих углу
bool register_resources(const qdNamedObject *res_owner)
Регистрация ресурсов набора в диспетчере ресурсов.
bool unregister_resources(const qdNamedObject *res_owner)
Отмена регистрации ресурсов набора в диспетчере ресурсов.
float adjust_angle(float angle) const
Возвращает ближайшее к angle направление, для которого есть анимация.
Поименованный объект.
Definition: qd_named_object.h:70
XML тег.
Definition: xml_tag.h:33
Базовый класс для игровых ресурсов.
Definition: console.h:28