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
31
namespace
Common
{
32
class
ReadStream;
33
}
34
35
namespace
BladeRunner
{
36
37
class
BladeRunnerEngine;
38
39
class
ScreenEffects
{
40
friend
class
Debugger
;
41
static
const
int
kMaxEffectsInScene = 7;
42
public
:
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
53
BladeRunnerEngine
*_vm;
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
63
public
:
64
ScreenEffects
(
BladeRunnerEngine
*vm,
int
size);
65
~
ScreenEffects
();
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
Common::Array< Entry >
BladeRunner
Definition:
actor.h:31
Common::SeekableReadStream
Definition:
stream.h:745
Common
Definition:
algorithm.h:29
BladeRunner::Debugger
Definition:
debugger.h:56
BladeRunner::BladeRunnerEngine
Definition:
bladerunner.h:113
BladeRunner::Color256
Definition:
color.h:47
BladeRunner::ScreenEffects::Entry
Definition:
screen_effects.h:43
BladeRunner::ScreenEffects
Definition:
screen_effects.h:39
engines
bladerunner
screen_effects.h
Generated on Thu Nov 14 2024 09:11:15 for ScummVM API documentation by
1.8.13