ScummVM API documentation
palette_fader_process.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 ULTIMA8_GFX_PALETTEFADERPROCESS_H
23#define ULTIMA8_GFX_PALETTEFADERPROCESS_H
24
25#include "ultima/ultima8/kernel/process.h"
26#include "ultima/ultima8/gfx/palette_manager.h"
27#include "ultima/ultima8/usecode/intrinsics.h"
28#include "ultima/ultima8/misc/classtype.h"
29
30namespace Ultima {
31namespace Ultima8 {
32
35 int _priority;
36 int32 _counter;
37 int32 _maxCounter;
38 int16 _oldMatrix[12]; // Fixed point -4.11
39 int16 _newMatrix[12];
40public:
41 static PaletteFaderProcess *_fader;
42
43 // p_dynamic_class stuff
44 ENABLE_RUNTIME_CLASSTYPE()
46 PaletteFaderProcess(PalTransforms trans, int priority, int frames);
47 PaletteFaderProcess(uint32 rgba, bool from, int priority, int frames, bool current);
48 PaletteFaderProcess(const int16 from[12], const int16 to[12], int priority, int frames);
49 ~PaletteFaderProcess(void) override;
50
51 void run() override;
52
53 INTRINSIC(I_fadeToPaletteTransform);
54 INTRINSIC(I_fadeToBlack);
55 INTRINSIC(I_fadeFromWhite);
56 INTRINSIC(I_fadeToWhite);
57 INTRINSIC(I_fadeFromBlack);
58 INTRINSIC(I_lightningBolt);
59 INTRINSIC(I_fadeToGreyScale);
60 INTRINSIC(I_fadeToGivenColor);
61 INTRINSIC(I_fadeToGamePal);
62 INTRINSIC(I_jumpToGreyScale);
63 INTRINSIC(I_jumpToAllBlack);
64 INTRINSIC(I_jumpToAllWhite);
65 INTRINSIC(I_jumpToAllGivenColor);
66 INTRINSIC(I_jumpToNormalPalette);
67
68 bool loadData(Common::ReadStream *rs, uint32 version);
69 void saveData(Common::WriteStream *ws) override;
70};
71
72} // End of namespace Ultima8
73} // End of namespace Ultima
74
75#endif
Definition: stream.h:385
Definition: stream.h:77
Definition: palette_fader_process.h:34
void saveData(Common::WriteStream *ws) override
save Process data
Definition: process.h:38