ScummVM API documentation
scumm_v4.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_SCRIPT_V4_H
23#define SCUMM_SCRIPT_V4_H
24
25#include "scumm/scumm_v5.h"
26
27namespace Scumm {
28
33 friend class ScummEngine_v5;
34
35public:
36 ScummEngine_v4(OSystem *syst, const DetectorResult &dr);
37
38 void resetScumm() override;
39
40 // Used by MacGui
41 void clearSeriesIQPoints();
42 void updateIQPoints();
43
44protected:
45 const byte _GUIPalette[13] = {0x00, 0x01, 0x0B, 0x03, 0x00, 0x0B, 0x0B, 0x03, 0x01, 0x00, 0x01, 0x0B, 0x09};
46 const byte _GUIPaletteCGA[13] = {0x00, 0x03, 0x0B, 0x03, 0x00, 0x0B, 0x0B, 0x0F, 0x03, 0x00, 0x0B, 0x0B, 0x05};
47
48 void setupOpcodes() override;
49
50 int readResTypeList(ResType type) override;
51 void readIndexFile() override;
52 void loadCharset(int no) override;
53 void resetRoomObjects() override;
54 void readMAXS(int blockSize) override;
55 void readGlobalObjects() override;
56
57 void resetRoomObject(ObjectData *od, const byte *room, const byte *searchptr = NULL) override;
58
59 void saveVars();
60 void loadVars();
61 void saveIQPoints(const byte *ptr, int size);
62 void loadIQPoints(byte *ptr, int size);
63
64 int getBannerColor(int bannerId) override;
65 void setUpMainMenuControls() override;
66
67 /* Version 4 script opcodes */
68 void o4_ifState();
69 void o4_ifNotState();
70 void o4_oldRoomEffect();
71 void o4_pickupObject();
72 void o4_saveLoadGame();
73 void o4_saveLoadVars();
74};
75
76
77} // End of namespace Scumm
78
79#endif
Definition: system.h:166
Definition: scumm_v4.h:32
Definition: scumm_v5.h:29
Definition: actor.h:30
ResType
Definition: scumm.h:243
Definition: detection.h:144
Definition: object.h:64