ScummVM API documentation
moonbase.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 SCUMM_HE_MOONBASE_MOONBASE_H
23#define SCUMM_HE_MOONBASE_MOONBASE_H
24
25#ifdef ENABLE_HE
26
27namespace Common {
28class PEResources;
29}
30
31namespace Scumm {
32
33class AI;
34class Map;
35
36class Moonbase {
37public:
38 Moonbase(ScummEngine_v100he *vm);
39 ~Moonbase();
40
41 int readFromArray(int array, int y, int x);
42 void deallocateArray(int array);
43 int callScummFunction(int scriptNumber, int paramCount,...);
44
45 // FOW Stuff
46 bool isFOW(int resNum, int state, uint32 conditionBits) {
47 return resNum == _fowSentinelImage && state == _fowSentinelState && conditionBits == _fowSentinelConditionBits;
48 }
49
50 void initFOW();
51 void releaseFOWResources();
52
53 bool setFOWImage(int id);
54
55 void setFOWInfo(int fowInfoArray, int downDim, int acrossDim, int viewX, int viewY, int clipX1,
56 int clipY1, int clipX2, int clipY2, int technique, int nFrame);
57
58
59 void renderFOW(WizMultiTypeBitmap *destSurface);
60
61private:
62 int readFOWVisibilityArray(int array, int y, int x);
63 void renderFOWState(WizMultiTypeBitmap *destSurface, int x, int y, int state);
64
65public:
66 int _fowSentinelImage;
67 int _fowSentinelState;
68 uint32 _fowSentinelConditionBits;
69
70 AI *_ai;
71 Map *_map;
72
73private:
74 ScummEngine_v100he *_vm;
75
76 int _fowFrameBaseNumber;
77 int _fowAnimationFrames;
78 int _fowCurrentFOWFrame;
79
80 int32 _fowTileW;
81 int32 _fowTileH;
82
83 uint8 *_fowImage;
84 int _fowClipX1;
85 int _fowClipY1;
86 int _fowClipX2;
87 int _fowClipY2;
88
89 int _fowDrawX;
90 int _fowDrawY;
91
92 int _fowVtx1;
93 int _fowVty1;
94 int _fowMvx;
95 int _fowMvy;
96 int _fowVw;
97 int _fowVh;
98
99 bool _fowBlackMode;
100
101 int32 _fowRenderTable[32768];
102
104 Common::Path _fileName;
105};
106
107} // End of namespace Scumm
108
109#endif // ENABLE_HE
110
111#endif // SCUMM_HE_MOONBASE_H
Definition: winexe_pe.h:48
Definition: path.h:52
Definition: algorithm.h:29
Definition: actor.h:30