ScummVM API documentation
screen_effects.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 BLADERUNNER_SCREEN_EFFECTS_H
23#define BLADERUNNER_SCREEN_EFFECTS_H
24
25#include "bladerunner/bladerunner.h" // For BLADERUNNER_ORIGINAL_BUGS symbol
26
27#include "bladerunner/color.h"
28
29#include "common/array.h"
30
31namespace Common {
32class ReadStream;
33}
34
35namespace BladeRunner {
36
37class BladeRunnerEngine;
38
40 friend class Debugger;
41 static const int kMaxEffectsInScene = 7;
42public:
43 struct Entry {
44 Color256 palette[16];
45 uint16 x;
46 uint16 y;
47 uint16 width;
48 uint16 height;
49 uint16 z;
50 uint8 *data;
51 };
52
54
55 Common::Array<Entry> _entries;
56 uint8 *_data;
57 int _dataSize;
58#if BLADERUNNER_ORIGINAL_BUGS
59#else
60 Common::Array<int> _skipEntries; // added member to allow skipping specified effects
61#endif // BLADERUNNER_ORIGINAL_BUGS
62
63public:
64 ScreenEffects(BladeRunnerEngine *vm, int size);
66
67 void readVqa(Common::SeekableReadStream *stream);
68 void getColor(Color256 *outColor, uint16 x, uint16 y, uint16 z) const;
69#if BLADERUNNER_ORIGINAL_BUGS
70#else
71 void toggleEntry(int effectId, bool skip); // added method to allow skipping specified effects
72#endif // BLADERUNNER_ORIGINAL_BUGS
73 //TODO
74 //bool isAffectingArea(int x, int y, int width, int height, int unk);
75};
76
77} // End of namespace BladeRunner
78
79#endif
Definition: bladerunner.h:113
Definition: debugger.h:56
Definition: screen_effects.h:39
Definition: stream.h:745
Definition: algorithm.h:29
Definition: color.h:47
Definition: screen_effects.h:43