ScummVM API documentation
qd_animation_set_preview.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef QDENGINE_QDCORE_ANIMATION_SET_PREVIEW_H
23#define QDENGINE_QDCORE_ANIMATION_SET_PREVIEW_H
24
25#include "qdengine/system/graphics/gr_dispatcher.h"
26
27
28namespace QDEngine {
29
30class qdCamera;
31
32class qdAnimation;
33class qdAnimationSet;
34
37public:
38 enum preview_mode_t {
39 VIEW_WALK_ANIMATIONS,
40 VIEW_STATIC_ANIMATIONS,
41 VIEW_START_ANIMATIONS,
42 VIEW_STOP_ANIMATIONS
43 };
44
47
48 preview_mode_t preview_mode() const {
49 return _preview_mode;
50 }
51 void set_preview_mode(preview_mode_t md) {
52 _preview_mode = md;
53 }
54
55 void set_screen(Vect2s offs, Vect2s size);
56
57 uint32 back_color() const {
58 return _back_color;
59 }
60 void set_back_color(uint32 col) {
61 _back_color = col;
62 }
63
64 uint32 grid_color() const {
65 return _grid_color;
66 }
67 void set_grid_color(uint32 col) {
68 _grid_color = col;
69 }
70
71 int camera_angle() const {
72 return _camera_angle;
73 }
74 void set_camera_angle(int ang);
75
76 float camera_focus();
77 void set_camera_focus(float f);
78
79 int cell_size() const {
80 return _cell_size;
81 }
82 void set_cell_size(int sz);
83
84 float personage_speed() const {
85 return _personage_speed;
86 }
87 void set_personage_speed(float sp) {
88 _personage_speed = sp;
89 }
90
91 float personage_height() const {
92 return _personage_height;
93 }
94 void set_personage_height(float h) {
95 _personage_height = h;
96 }
97
98 int direction() const {
99 return _direction;
100 }
101 bool set_direction(int dir);
102
103 bool set_phase(float phase);
104
105 void set_graph_dispatcher(grDispatcher *p);
106
107 void start();
108 void quant();
109 void quant(float tm);
110
111 void redraw();
112
113 const qdAnimation *cur_animation() const {
114 return _animation;
115 }
116
117private:
118 int _start_time;
119
120 int _direction;
121 //float speed_;
122
123 float _personage_speed;
124 float _personage_height;
125
126 qdAnimation *_animation;
127 qdAnimationSet *_animation_set;
128
129 qdCamera *_camera;
130 int _camera_angle;
131
132 grDispatcher *_graph_d;
133
134 uint32 _back_color;
135 uint32 _grid_color;
136
137 int _cell_size;
138 float _cell_offset;
139
140 Vect2s _screen_offset;
141 Vect2s _screen_size;
142
143 preview_mode_t _preview_mode;
144
145 void redraw_grid();
146};
147
148} // namespace QDEngine
149
150#endif // QDENGINE_QDCORE_ANIMATION_SET_PREVIEW_H
Definition: xmath.h:419
Definition: gr_dispatcher.h:85
Анимация.
Definition: qd_animation.h:57
Definition: qd_animation_set.h:34
Превью походки.
Definition: qd_animation_set_preview.h:36
Definition: qd_camera.h:122
Базовый класс для игровых ресурсов.
Definition: console.h:28