ScummVM API documentation
animation.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 SHERLOCK_ANIMATION_H
23#define SHERLOCK_ANIMATION_H
24
25#include "common/scummsys.h"
26#include "common/path.h"
27#include "common/array.h"
28
29namespace Sherlock {
30
31#define FRAMES_END 32000
32
33class SherlockEngine;
34
35class Animation {
36private:
37 SherlockEngine *_vm;
38
39 Common::Array<const char *> _prologueNames;
40 Common::Array<Common::Array<int> > _prologueFrames;
43
47 const int *checkForSoundFrames(const Common::Path &filename, bool intro);
48public:
49 Common::Path _soundLibraryFilename;
50 Common::Path _gfxLibraryFilename;
51
52public:
54
58 void setPrologueNames(const char *const *names, int count);
59
63 void setPrologueFrames(const int *frames, int count, int maxFrames);
64
68 void setTitleNames(const char *const *names, int count);
69
73 void setTitleFrames(const int *frames, int count, int maxFrames);
74
78 bool play(const Common::Path &filename, bool intro, int minDelay, int fade, bool setPalette, int speed);
79
80 bool play3DO(const Common::Path &filename, bool intro, int minDelay, bool fadeFromGrey, int speed);
81};
82
83} // End of namespace Sherlock
84
85#endif
Definition: path.h:52
Definition: animation.h:35
bool play(const Common::Path &filename, bool intro, int minDelay, int fade, bool setPalette, int speed)
void setTitleNames(const char *const *names, int count)
void setPrologueFrames(const int *frames, int count, int maxFrames)
void setPrologueNames(const char *const *names, int count)
void setTitleFrames(const int *frames, int count, int maxFrames)
Definition: sherlock.h:206