22 #ifndef QDENGINE_QDCORE_QD_COORDS_ANIMATION_POINT_H 23 #define QDENGINE_QDCORE_QD_COORDS_ANIMATION_POINT_H 25 #include "qdengine/parser/xml_fwd.h" 35 static const float NO_DIRECTION;
37 const Vect3f &dest_pos()
const {
40 void set_dest_pos(
const Vect3f &r) {
44 float direction_angle()
const {
45 return _direction_angle;
47 void set_direction_angle(
float ang) {
48 _direction_angle = ang;
52 _passed_path_length = 0.0f;
55 bool move(
float &path)
const {
56 _passed_path_length += path;
57 if (_passed_path_length >= _path_length) {
58 path = _passed_path_length - _path_length;
65 float passed_path()
const;
66 float path_length()
const {
81 float _direction_angle;
83 mutable float _path_length;
84 mutable float _passed_path_length;
91 #endif // QDENGINE_QDCORE_QD_COORDS_ANIMATION_POINT_H
bool save_data(Common::WriteStream &fh) const
Запись данных в сэйв.
bool load_data(Common::SeekableReadStream &fh, int save_version)
Загрузка данных из сэйва.
XML тег.
Definition: xml_tag.h:33
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: qd_coords_animation_point.h:30